feat: fix data center

This commit is contained in:
MingLiang Wang
2023-01-10 21:44:40 +08:00
parent 412d5205c8
commit ad5e7cb2f4

View File

@@ -186,7 +186,7 @@ export class DataCenter {
*/
public async onWorkspacesChange(
callback: (workspaces: WorkspaceUnitCollectionChangeEvent) => void,
{ immediate = true }: { immediate?: boolean }
{ immediate = true }: { immediate?: boolean } = {}
) {
if (immediate) {
callback({