mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
@@ -121,6 +121,9 @@ export const CreateWorkspaceModal = ({
|
||||
const result = await apis.dialog.loadDBFile();
|
||||
if (result.workspaceId && !canceled) {
|
||||
_addLocalWorkspace(result.workspaceId);
|
||||
workspaceManager.list.revalidate().catch(err => {
|
||||
logger.error("can't revalidate workspace list", err);
|
||||
});
|
||||
onCreate(result.workspaceId);
|
||||
} else if (result.error || result.canceled) {
|
||||
if (result.error) {
|
||||
|
||||
Reference in New Issue
Block a user