Skip to content

Commit 93ba327

Browse files
committed
fix: set default database list
1 parent f67fa37 commit 93ba327

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/page/Workspace/context/WorkspaceStore.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default function WorkspaceStore({ children }) {
101101
true,
102102
true,
103103
);
104-
setDatabaseList(data?.contents);
104+
setDatabaseList(data?.contents || []);
105105
return data?.contents;
106106
}
107107
}, [selectProjectId, selectDatasourceId]);

0 commit comments

Comments
 (0)