mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-06 17:57:42 +02:00
UBER-513: Fix desktop app navigation (#3459)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -25,7 +25,8 @@
|
||||
navigate,
|
||||
resolvedLocationStore,
|
||||
setMetadataLocalStorage,
|
||||
IconCheck
|
||||
IconCheck,
|
||||
locationStorageKeyId
|
||||
} from '@hcengineering/ui'
|
||||
import { workbenchId } from '@hcengineering/workbench'
|
||||
import { onMount } from 'svelte'
|
||||
@@ -72,7 +73,7 @@
|
||||
closePopup()
|
||||
closePopup()
|
||||
if (ws !== getCurrentLocation().path[1]) {
|
||||
const last = localStorage.getItem(`platform_last_loc_${ws}`)
|
||||
const last = localStorage.getItem(`${locationStorageKeyId}_${ws}`)
|
||||
if (last !== null) {
|
||||
navigate(JSON.parse(last))
|
||||
} else navigate({ path: [workbenchId, ws] })
|
||||
|
||||
Reference in New Issue
Block a user