Fix tabs on desktop and during workspace switch (#6795)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2024-10-03 18:48:24 +07:00
committed by GitHub
parent 951fcf2afa
commit 4234931d82
7 changed files with 57 additions and 5 deletions
@@ -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]