mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 19:53:48 +08:00
@@ -407,6 +407,7 @@ export class AffineProvider extends BaseProvider {
|
|||||||
token.clear();
|
token.clear();
|
||||||
this._channel?.disconnect();
|
this._channel?.disconnect();
|
||||||
this._wsMap.forEach(ws => ws.disconnect());
|
this._wsMap.forEach(ws => ws.disconnect());
|
||||||
|
this._workspaces.clear();
|
||||||
storage.removeItem('token');
|
storage.removeItem('token');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -122,9 +122,7 @@ export class WorkspaceUnitCollection {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const clear = () => {
|
const clear = () => {
|
||||||
scopedWorkspaceIds.forEach(id => {
|
remove(Array.from(scopedWorkspaceIds));
|
||||||
remove(id);
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const update = (workspaceId: string, meta: UpdateWorkspaceUnitParams) => {
|
const update = (workspaceId: string, meta: UpdateWorkspaceUnitParams) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user