From 9cd461bc235a645d06152e1233dcd6590f8bef83 Mon Sep 17 00:00:00 2001 From: Praise Disu Date: Fri, 11 Oct 2024 10:35:02 +0100 Subject: [PATCH] i fixed the error on create blank --- libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' }) ) }