Skip to content

Commit e93bda5

Browse files
committed
only do it on mount
1 parent bd295a5 commit e93bda5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/learningmap/src/EditorDialogs.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export const EditorDialogs = memo(({ defaultLanguage = "en", jsonStore = "https:
4040
};
4141

4242
useEffect(() => {
43+
// https://www.learningmap.app/#json=PjYfAMWXls8ipRsLrpt7t
4344
const hash = window.location.hash;
4445
if (hash.startsWith("#json=")) {
4546
const id = hash.replace("#json=", "");
@@ -48,7 +49,7 @@ export const EditorDialogs = memo(({ defaultLanguage = "en", jsonStore = "https:
4849
setLoadExternalDialogOpen(true);
4950
}
5051
}
51-
}, [setLoadExternalDialogOpen, setPendingExternalId, pendingExternalId]);
52+
}, []);
5253

5354
const keyboardShortcuts = [
5455
{ action: t.shortcuts.undo, shortcut: "Ctrl+Z" },

0 commit comments

Comments
 (0)