diff --git a/source/frontend/src/features/mapSideBar/subdivision/AddSubdivisionContainer.tsx b/source/frontend/src/features/mapSideBar/subdivision/AddSubdivisionContainer.tsx index 47af5bb5be..ee3c885215 100644 --- a/source/frontend/src/features/mapSideBar/subdivision/AddSubdivisionContainer.tsx +++ b/source/frontend/src/features/mapSideBar/subdivision/AddSubdivisionContainer.tsx @@ -47,10 +47,10 @@ const AddSubdivisionContainer: React.FC = ({ onCl setDisplayModal(false); }, }); + setDisplayModal(true); } else { onClose?.(); } - setDisplayModal(true); }, [onClose, setDisplayModal, setModalContent]); const initialForm = useMemo(() => {