Skip to content

Commit 8634796

Browse files
authored
Fix renaming forked sandboxes (codesandbox#3176)
* Fix renaming forked sandboxes * Revert file * Add fallback
1 parent dee1901 commit 8634796

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ export const forkSandbox: AsyncAction<{
351351
});
352352
}
353353

354+
state.workspace.project.title = forkedSandbox.title || '';
355+
state.workspace.project.description = forkedSandbox.description || '';
356+
state.workspace.project.alias = forkedSandbox.alias || '';
357+
354358
Object.assign(
355359
state.editor.sandboxes[state.editor.currentId],
356360
forkedSandbox

0 commit comments

Comments
 (0)