mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-23 16:56:07 +00:00
Fix Workbench.mergeLoc when opening the same project (#4468)
Signed-off-by: Danil Uzlov <danil.uzlov@xored.com>
This commit is contained in:
parent
6996945e48
commit
2ba02fa195
@ -246,10 +246,12 @@
|
||||
loc.path[3] = currentSpace ?? currentSpecial ?? resolved.defaultLocation.path[3]
|
||||
if (loc.path[3] !== undefined && isSameApp) {
|
||||
// setting space special/aside only if it belongs to the same app
|
||||
if (loc.path[3] === resolved.defaultLocation.path[3]) {
|
||||
if (currentSpace && currentSpecial) {
|
||||
loc.path[4] = currentSpecial
|
||||
} else if (loc.path[3] === resolved.defaultLocation.path[3]) {
|
||||
loc.path[4] = resolved.defaultLocation.path[4]
|
||||
} else {
|
||||
loc.path[4] = (currentSpace && currentSpecial) ?? (asideId as string)
|
||||
loc.path[4] = asideId as string
|
||||
}
|
||||
} else {
|
||||
loc.path.length = 4
|
||||
|
Loading…
Reference in New Issue
Block a user