fix switching workspaces

pull/980/head
yann300 4 years ago
parent 0245336e82
commit b67fd2243d
  1. 2
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -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 = {

Loading…
Cancel
Save