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 bda952ff4e0..aa746a5b51a 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(workspace ? workspace: `blank - ${counter}`, gitNotSet, (value) => { workspace = value }, (value) => gitInit = false), + await createModalMessage(workspace ? workspace: `blank - ${counter}`, gitNotSet, (value) => { workspace = value }, (value) => {gitInit = value === 'on'}), intl.formatMessage({ id: 'filePanel.ok' }), - () => global.dispatchCreateWorkspace(workspace ? workspace: `blank - ${counter}`, 'blank', false), + () => global.dispatchCreateWorkspace(workspace ? workspace: `blank - ${counter}`, 'blank', null, gitInit), intl.formatMessage({ id: 'filePanel.cancel' }) ) } @@ -1014,7 +1014,7 @@ export function Workspace() {
- {currentWorkspace !== LOCALHOST ? ( + { currentWorkspace !== LOCALHOST ? ( hideIconsMenu(!showIconsMenu)} show={showIconsMenu}>