Fix: Remove unnecessary then call in ZenWorkspaces and return an array.

This commit is contained in:
Kristijan Ribarić 2024-10-14 16:21:40 +02:00
parent 74bd43f9c9
commit c9adec30cb

View file

@ -888,11 +888,8 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
if(this.shouldForceContainerTabsToWorkspace && typeof userContextId !== 'undefined' && this._workspaceCache?.workspaces) {
const workspace = this._workspaceCache.workspaces.find((workspace) => workspace.containerTabId === userContextId);
if(workspace && workspace.uuid !== this.getActiveWorkspaceFromCache().uuid) {
this.changeWorkspace(workspace).then(() => {
return [userContextId, true];
});
this.changeWorkspace(workspace);
return [userContextId, true];
}
}