|
@@ -135,9 +135,7 @@ const PageEditor = React.memo((): JSX.Element => {
|
|
|
|
|
|
|
|
await save(opts);
|
|
await save(opts);
|
|
|
mutateEditorMode(EditorMode.View);
|
|
mutateEditorMode(EditorMode.View);
|
|
|
- // disable unsaved warning
|
|
|
|
|
- mutateIsEnabledUnsavedWarning(false);
|
|
|
|
|
- }, [editorMode, save, mutateEditorMode, mutateIsEnabledUnsavedWarning]);
|
|
|
|
|
|
|
+ }, [editorMode, save, mutateEditorMode]);
|
|
|
|
|
|
|
|
const saveWithShortcut = useCallback(async() => {
|
|
const saveWithShortcut = useCallback(async() => {
|
|
|
if (editorMode !== EditorMode.Editor) {
|
|
if (editorMode !== EditorMode.Editor) {
|