Skip to content

Commit 2c6a281

Browse files
committed
on fail reset
1 parent 3ae124c commit 2c6a281

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/learningmap/src/useJsonStore.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ export const useJsonStore = () => {
6666
})
6767
.catch(() => {
6868
alert(t.loadFailed);
69+
setLoadExternalDialogOpen(false);
70+
setPendingExternalId(null);
71+
window.location.hash = "";
6972
});
7073
},
7174
[jsonStore, t, loadRoadmapData],

0 commit comments

Comments
 (0)