|
|
|
@ -217,6 +217,7 @@ export const Workspace = (props: WorkspaceProps) => { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const setWorkspace = async (name) => { |
|
|
|
|
props.setWorkspace({ name, isLocalhost: name === LOCALHOST }) |
|
|
|
|
if (name === LOCALHOST) { |
|
|
|
|
props.workspace.clearWorkspace() |
|
|
|
|
} else if (name === NO_WORKSPACE) { |
|
|
|
@ -228,7 +229,6 @@ export const Workspace = (props: WorkspaceProps) => { |
|
|
|
|
setState(prevState => { |
|
|
|
|
return { ...prevState, currentWorkspace: name } |
|
|
|
|
}) |
|
|
|
|
props.setWorkspace({ name, isLocalhost: name === LOCALHOST }) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const remixdExplorer = { |
|
|
|
|