mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-28 11:53:24 +03:00
feat: improve clear logic
This commit is contained in:
parent
cc00f2cb2d
commit
84dd82aa96
@ -122,9 +122,7 @@ export class WorkspaceUnitCollection {
|
||||
};
|
||||
|
||||
const clear = () => {
|
||||
scopedWorkspaceIds.forEach(id => {
|
||||
remove(id);
|
||||
});
|
||||
remove(Array.from(scopedWorkspaceIds));
|
||||
};
|
||||
|
||||
const update = (workspaceId: string, meta: UpdateWorkspaceUnitParams) => {
|
||||
|
Loading…
Reference in New Issue
Block a user