mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-24 18:02:47 +08:00
feat: improve clear logic
This commit is contained in:
@@ -122,9 +122,7 @@ export class WorkspaceUnitCollection {
|
||||
};
|
||||
|
||||
const clear = () => {
|
||||
scopedWorkspaceIds.forEach(id => {
|
||||
remove(id);
|
||||
});
|
||||
remove(Array.from(scopedWorkspaceIds));
|
||||
};
|
||||
|
||||
const update = (workspaceId: string, meta: UpdateWorkspaceUnitParams) => {
|
||||
|
||||
Reference in New Issue
Block a user