Skip to content

Commit 5ab7a64

Browse files
committed
Add another check to our unload message
1 parent f72087c commit 5ab7a64

File tree

1 file changed

+1
-1
lines changed
  • packages/app/src/app/overmind/namespaces/editor

1 file changed

+1
-1
lines changed

packages/app/src/app/overmind/namespaces/editor/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export const sandboxChanged: AsyncAction<{ id: string }> = withLoadApp<{
132132

133133
export const contentMounted: Action = ({ state, effects }) => {
134134
effects.browser.onUnload(event => {
135-
if (!state.editor.isAllModulesSynced) {
135+
if (!state.editor.isAllModulesSynced && !state.editor.isForkingSandbox) {
136136
const returnMessage =
137137
'You have not saved all your modules, are you sure you want to close this tab?';
138138

0 commit comments

Comments
 (0)