From f1f547fe69f0e7429c88a9c961021f96929b5559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristijan=20Ribari=C4=87?= Date: Fri, 4 Oct 2024 17:02:09 +0200 Subject: [PATCH] fix(zen-workspaces): Correctly emit workspace update notification The previous implementation of the workspace update notification was using `workspaceData.uuid`, which is incorrect. This commit fixes the issue by using `workspace.uuid` instead, ensuring the correct workspace identifier is sent to observers. --- src/ZenWorkspaces.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZenWorkspaces.mjs b/src/ZenWorkspaces.mjs index fbb0c1b..de7a874 100644 --- a/src/ZenWorkspaces.mjs +++ b/src/ZenWorkspaces.mjs @@ -758,7 +758,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature { let userContextId = parseInt(event.target.getAttribute('data-usercontextid')); workspace.containerTabId = userContextId; await this.saveWorkspace(workspace); - Services.obs.notifyObservers(null, "zen-workspace-updated", workspaceData.uuid); + Services.obs.notifyObservers(null, "zen-workspace-updated", workspace.uuid); await this._propagateWorkspaceData(); }