We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81dd93b commit 327b0e1Copy full SHA for 327b0e1
packages/app/src/app/overmind/namespaces/editor/internalActions.ts
@@ -354,8 +354,9 @@ export const forkSandbox: AsyncAction<{
354
{ sandboxId: id, body, openInNewWindow = false }
355
) => {
356
const sandbox = state.editor.currentSandbox;
357
+ const currentSandboxId = state.editor.currentId;
358
- if (!sandbox) {
359
+ if (!sandbox || !currentSandboxId) {
360
return;
361
}
362
@@ -370,8 +371,6 @@ export const forkSandbox: AsyncAction<{
370
371
372
373
- const currentSandboxId = state.editor.currentId;
374
-
375
effects.analytics.track('Fork Sandbox');
376
377
try {
0 commit comments