mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 20:57:45 +02:00
TSK-811: Show last workspace location after switching/opening workspace (#2776)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
@@ -71,7 +71,10 @@
|
||||
closePopup()
|
||||
closePopup()
|
||||
if (ws !== getCurrentLocation().path[1]) {
|
||||
navigate({ path: [workbenchId, ws] })
|
||||
const last = localStorage.getItem(`platform_last_loc_${ws}`)
|
||||
if (last !== null) {
|
||||
navigate(JSON.parse(last))
|
||||
} else navigate({ path: [workbenchId, ws] })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user