Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

Merge branch 'feat/tauri-kanban-fixes' into feat/tauri-grid

ascarbek8b68b1390c24
diff --cc frontend/appflowy_tauri/src/appflowy_app/components/_shared/database-hooks/useDatabase.ts
index 8c42894722,e39dc29ec0..c065386533
--- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/database-hooks/useDatabase.ts
+++ b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/database-hooks/useDatabase.ts
@@@ -56,17 -56,9 +56,17 @@@ export const useDatabase = (viewId: str
void loadFields(fieldInfos);
},
});
- await controller.open();
+
+ const openResult = await controller.open();
+ if (openResult.ok) {
+ setRows(
+ openResult.val.map((pb) => {
+ return new RowInfo(viewId, controller.fieldController.fieldInfos, pb);
+ })
+ );
+ }
- if (type === ViewLayoutTypePB.Board) {
+ if (type === ViewLayoutPB.Board) {
const fieldId = await controller.getGroupByFieldId();
setGroupByFieldId(fieldId.unwrap());
setGroups(controller.groups.value);