switch workspace if connection lost

pull/5370/head
yann300 4 years ago
parent 5cc6037493
commit 1d43096b92
  1. 1
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -88,6 +88,7 @@ export const Workspace = (props: WorkspaceProps) => {
props.localhost.event.register('disconnected', () => { props.localhost.event.register('disconnected', () => {
remixdExplorer.hide() remixdExplorer.hide()
setWorkspace(props.workspaces.length > 0 ? props.workspaces[0] : NO_WORKSPACE)
}) })
if (props.initialWorkspace) { if (props.initialWorkspace) {

Loading…
Cancel
Save