mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 21:45:01 +02:00
Fix tabs on desktop and during workspace switch (#6795)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -251,6 +251,7 @@
|
||||
|
||||
const doSyncLoc = reduceCalls(async (loc: Location): Promise<void> => {
|
||||
if (workspaceId !== $location.path[1]) {
|
||||
tabs = []
|
||||
// Switch of workspace
|
||||
return
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
}
|
||||
|
||||
async function updateTabData (tab: WorkbenchTab): Promise<void> {
|
||||
const tabLoc = getTabLocation(tab)
|
||||
const tabLoc = $tabIdStore === tab._id ? getCurrentLocation() : getTabLocation(tab)
|
||||
const alias = tabLoc.path[2]
|
||||
const application = client.getModel().findAllSync<Application>(workbench.class.Application, { alias })[0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user