i fixed the error on create blank

pull/5284/head
Praise Disu 1 month ago committed by Aniket
parent 077ede5ab9
commit 9cd461bc23
  1. 4
      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' })
)
}

Loading…
Cancel
Save