mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
feat: change the order of load workspaces
This commit is contained in:
@@ -18,7 +18,7 @@ export interface WorkspaceUnitCollectionScope {
|
||||
}
|
||||
|
||||
export interface WorkspaceUnitCollectionChangeEvent {
|
||||
added?: WorkspaceUnit;
|
||||
added?: WorkspaceUnit[];
|
||||
deleted?: WorkspaceUnit;
|
||||
updated?: WorkspaceUnit;
|
||||
}
|
||||
@@ -71,7 +71,7 @@ export class WorkspaceUnitCollection {
|
||||
|
||||
this._events.emit('change', [
|
||||
{
|
||||
added: workspaceUnit,
|
||||
added: [workspaceUnit],
|
||||
} as WorkspaceUnitCollectionChangeEvent,
|
||||
]);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user