Correct error handling (#5023)

This commit is contained in:
Denis Bykhov
2024-03-21 10:39:00 +07:00
committed by GitHub
parent 62e3ccdc7b
commit bc7ed968fc
5 changed files with 59 additions and 15 deletions
@@ -25,10 +25,11 @@
location,
setMetadataLocalStorage
} from '@hcengineering/ui'
import { connect, versionError } from '../connect'
import { connect, disconnect, versionError } from '../connect'
import { workbenchId } from '@hcengineering/workbench'
import workbench from '../plugin'
import { onDestroy } from 'svelte'
const isNeedUpgrade = window.location.host === ''
@@ -38,6 +39,8 @@
setMetadataLocalStorage(workbench.metadata.MobileAllowed, true)
mobileAllowed = true
}
onDestroy(disconnect)
</script>
{#if $location.path[0] === workbenchId || $location.path[0] === workbench.component.WorkbenchApp}