Commit 1226ae9e authored by yann300's avatar yann300

switch workspace if connection lost

parent 2e9ea9e5
......@@ -88,6 +88,7 @@ export const Workspace = (props: WorkspaceProps) => {
props.localhost.event.register('disconnected', () => {
remixdExplorer.hide()
setWorkspace(props.workspaces.length > 0 ? props.workspaces[0] : NO_WORKSPACE)
})
if (props.initialWorkspace) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment