|
|
@ -42,7 +42,7 @@ export const createWorkspace = async (workspaceName: string) => { |
|
|
|
promise.then(async () => { |
|
|
|
promise.then(async () => { |
|
|
|
dispatch(createWorkspaceSuccess(workspaceName)) |
|
|
|
dispatch(createWorkspaceSuccess(workspaceName)) |
|
|
|
await loadWorkspacePreset('default-template') |
|
|
|
await loadWorkspacePreset('default-template') |
|
|
|
// await switchToWorkspace(workspaceName)
|
|
|
|
plugin.emit('setWorkspace', { name: workspaceName, isLocalhost: false }) |
|
|
|
}).catch((error) => { |
|
|
|
}).catch((error) => { |
|
|
|
dispatch(createWorkspaceError({ error })) |
|
|
|
dispatch(createWorkspaceError({ error })) |
|
|
|
}) |
|
|
|
}) |
|
|
|