mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 22:29:59 +02:00
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.
This commit is contained in:
parent
4a54adea9a
commit
f1f547fe69
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue