Skip to content

Commit bd1a770

Browse files
committed
fix discard button not closing the modal
1 parent 7f38405 commit bd1a770

File tree

1 file changed

+1
-0
lines changed
  • superset-frontend/src/hooks/useUnsavedChangesPrompt

1 file changed

+1
-0
lines changed

superset-frontend/src/hooks/useUnsavedChangesPrompt/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export const useUnsavedChangesPrompt = ({
4141
const manualSaveRef = useRef(false); // Track if save was user-initiated (not via navigation)
4242

4343
const handleConfirmNavigation = useCallback(() => {
44+
setShowModal(false);
4445
confirmNavigationRef.current?.();
4546
}, []);
4647

0 commit comments

Comments
 (0)