From d8c8246965b71f1010af99b943b3a6bafe16fcde Mon Sep 17 00:00:00 2001 From: Aadesh-Baral Date: Thu, 20 Jul 2023 20:31:44 +0545 Subject: [PATCH] Show back to validation buttons after clicking on done while validating --- frontend/src/components/tagEditor/editForm.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/tagEditor/editForm.js b/frontend/src/components/tagEditor/editForm.js index 74e9875..050b0ec 100644 --- a/frontend/src/components/tagEditor/editForm.js +++ b/frontend/src/components/tagEditor/editForm.js @@ -126,6 +126,8 @@ export function TagEditorForm(props) { } updateElement().then(() => { props.onDone(); + // Reset editMode to false so that validation buttons are shown for the next feature + if (editMode) setEditMode(!editMode); }); };