mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-30 20:28:20 +00:00
TSK-47 fix (#2058)
Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
parent
476558421b
commit
7ad85f8fc0
@ -136,18 +136,19 @@
|
||||
if (currentApp !== app) {
|
||||
clear(1)
|
||||
currentApp = app
|
||||
if (space === undefined) {
|
||||
const last = localStorage.getItem(`platform_last_loc_${currentApp}`)
|
||||
if (last !== null) {
|
||||
const newLocation: Location = JSON.parse(last)
|
||||
loc.path[2] = space = newLocation.path[2] as Ref<Space>
|
||||
loc.path[3] = special = newLocation.path[3]
|
||||
}
|
||||
}
|
||||
currentApplication = await client.findOne(workbench.class.Application, { _id: currentApp })
|
||||
navigatorModel = currentApplication?.navigatorModel
|
||||
}
|
||||
|
||||
if (space === undefined) {
|
||||
const last = localStorage.getItem(`platform_last_loc_${currentApp}`)
|
||||
if (last !== null) {
|
||||
const newLocation: Location = JSON.parse(last)
|
||||
loc.path[2] = space = newLocation.path[2] as Ref<Space>
|
||||
loc.path[3] = special = newLocation.path[3]
|
||||
}
|
||||
}
|
||||
|
||||
if (currentSpecial === undefined || currentSpecial !== space) {
|
||||
const newSpecial = space !== undefined ? getSpecialComponent(space) : undefined
|
||||
if (newSpecial !== undefined) {
|
||||
|
Loading…
Reference in New Issue
Block a user