From c8f0bed963c70126a180127e9b28e43ee95e8f87 Mon Sep 17 00:00:00 2001 From: vpopescu Date: Thu, 29 Sep 2022 16:55:27 +0200 Subject: [PATCH] Made error disappear if keys have been fixed --- jsx/src/components/GroupEdit/GroupEdit.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jsx/src/components/GroupEdit/GroupEdit.jsx b/jsx/src/components/GroupEdit/GroupEdit.jsx index dbdb82c4..5ba44b52 100644 --- a/jsx/src/components/GroupEdit/GroupEdit.jsx +++ b/jsx/src/components/GroupEdit/GroupEdit.jsx @@ -128,7 +128,7 @@ const GroupEdit = (props) => { } if (hasDuplicates(propkeys) == true) { - setErrorAlert(`Duplicate keys found!`) + setErrorAlert(`Duplicate keys found!`); } else { propkeys.forEach((key, i) => (propobject[key] = propvalues[i])); } @@ -137,6 +137,7 @@ const GroupEdit = (props) => { hasDuplicates(propkeys) == false ) { promiseQueue.push(updateProp(propobject, group_data.name)); + setErrorAlert(null); } Promise.all(promiseQueue) .then((data) => {