diff --git a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx index 1c424a442f..25e27183b5 100644 --- a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx +++ b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx @@ -350,9 +350,9 @@ export function Workspace() { }) global.modal( intl.formatMessage({ id: 'filePanel.workspace.createBlank' }), - await createModalMessage(`blank - ${counter}`, gitNotSet, (value) => { workspace = value }, (value) => gitInit = false), + await createModalMessage(workspace ? workspace: `blank - ${counter}`, gitNotSet, (value) => { workspace = value }, (value) => gitInit = false), intl.formatMessage({ id: 'filePanel.ok' }), - () => global.dispatchCreateWorkspace(`blank - ${counter}`, 'blank', false), + () => global.dispatchCreateWorkspace(workspace ? workspace: `blank - ${counter}`, 'blank', false), intl.formatMessage({ id: 'filePanel.cancel' }) ) }