mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-09-11 19:47:35 +03:00
parent
12fdb18a80
commit
d1c2b2a7b0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user