feat: improve clear logic

This commit is contained in:
MingLiang Wang
2023-01-17 10:26:50 +08:00
parent cc00f2cb2d
commit 84dd82aa96

View File

@@ -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) => {