mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 14:03:02 +00:00
Made error disappear if keys have been fixed
This commit is contained in:
@@ -128,7 +128,7 @@ const GroupEdit = (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hasDuplicates(propkeys) == true) {
|
if (hasDuplicates(propkeys) == true) {
|
||||||
setErrorAlert(`Duplicate keys found!`)
|
setErrorAlert(`Duplicate keys found!`);
|
||||||
} else {
|
} else {
|
||||||
propkeys.forEach((key, i) => (propobject[key] = propvalues[i]));
|
propkeys.forEach((key, i) => (propobject[key] = propvalues[i]));
|
||||||
}
|
}
|
||||||
@@ -137,6 +137,7 @@ const GroupEdit = (props) => {
|
|||||||
hasDuplicates(propkeys) == false
|
hasDuplicates(propkeys) == false
|
||||||
) {
|
) {
|
||||||
promiseQueue.push(updateProp(propobject, group_data.name));
|
promiseQueue.push(updateProp(propobject, group_data.name));
|
||||||
|
setErrorAlert(null);
|
||||||
}
|
}
|
||||||
Promise.all(promiseQueue)
|
Promise.all(promiseQueue)
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
|
Reference in New Issue
Block a user