mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-12 12:33:02 +00:00
Added type checks
This commit is contained in:
@@ -58,6 +58,7 @@ const DynamicTable = (props) => {
|
||||
};
|
||||
|
||||
const renderKeyRows = () => {
|
||||
if (propkeys){
|
||||
return propkeys.map(function (o, i) {
|
||||
return (
|
||||
<tr key={"item-" + i}>
|
||||
@@ -85,7 +86,9 @@ const DynamicTable = (props) => {
|
||||
);
|
||||
});
|
||||
};
|
||||
};
|
||||
const renderValueRows = () => {
|
||||
if (propvalues){
|
||||
return propvalues.map(function (o, i) {
|
||||
//console.log("ValRows" +i)
|
||||
//console.log("ValRows" +o)
|
||||
@@ -108,7 +111,9 @@ const DynamicTable = (props) => {
|
||||
);
|
||||
});
|
||||
};
|
||||
};
|
||||
const renderDelete = () => {
|
||||
if (propvalues){
|
||||
return propvalues.map(function (o, i) {
|
||||
return (
|
||||
<tr key={"item-" + i}>
|
||||
@@ -135,6 +140,7 @@ const DynamicTable = (props) => {
|
||||
);
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
@@ -91,6 +91,9 @@ const GroupEdit = (props) => {
|
||||
<DynamicTable
|
||||
current_propobject={group_data.properties}
|
||||
setProp={setProp}
|
||||
setPropKeys={setPropKeys}
|
||||
setPropValues={setPropValues}
|
||||
|
||||
//Add keys
|
||||
/>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user