fix: first workspace create logic (#1773)

This commit is contained in:
Peng Xiao authored and GitHub committed 2023-03-31 12:40:30 -05:00
1 parent fd65dd66a1
commit 7299efe16a
20 files changed
+158 -87

No files matched your search

+3
View File
@@ -131,6 +131,9 @@ export const AffinePlugin: WorkspacePlugin<WorkspaceFlavour.AFFINE> = {
},
list: async () => {
const allWorkspaces = getPersistenceAllWorkspace();
if (!getLoginStorage()) {
return allWorkspaces;
}
try {
const workspaces = await affineApis.getWorkspaces().then(workspaces => {
return workspaces.map(workspace => {