diff --git a/src/qqq/components/forms/EntityForm.tsx b/src/qqq/components/forms/EntityForm.tsx index c885367..7f5cbe9 100644 --- a/src/qqq/components/forms/EntityForm.tsx +++ b/src/qqq/components/forms/EntityForm.tsx @@ -119,6 +119,7 @@ function EntityForm(props: Props): JSX.Element const [, forceUpdate] = useReducer((x) => x + 1, 0); const [showEditChildForm, setShowEditChildForm] = useState(null as any); + const [modalDataChangedCounter, setModalDataChangedCount] = useState(0); const [notAllowedError, setNotAllowedError] = useState(null as string); @@ -282,6 +283,8 @@ function EntityForm(props: Props): JSX.Element setRenderedWidgetSections(newRenderedWidgetSections); forceUpdate(); + setModalDataChangedCount(modalDataChangedCounter + 1); + setShowEditChildForm(null); } @@ -375,7 +378,7 @@ function EntityForm(props: Props): JSX.Element widgetMetaData.showExportButton = false; return