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 = () => {
scopedWorkspaceIds.forEach(id => {
remove(id);
});
remove(Array.from(scopedWorkspaceIds));
};
const update = (workspaceId: string, meta: UpdateWorkspaceUnitParams) => {