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.

fix: reorder grid field updating all views (#4791)

Richard Shiuef4170755fa55
diff --git a/frontend/rust-lib/flowy-database2/src/services/database/database_editor.rs b/frontend/rust-lib/flowy-database2/src/services/database/database_editor.rs
index acd99968b0..7e79d74291 100644
--- a/frontend/rust-lib/flowy-database2/src/services/database/database_editor.rs
+++ b/frontend/rust-lib/flowy-database2/src/services/database/database_editor.rs
@@ -594,13 +594,15 @@ impl DatabaseEditor {
index: index as i32,
};
let notified_changeset = DatabaseFieldChangesetPB {
- view_id: params.view_id,
+ view_id: params.view_id.clone(),
inserted_fields: vec![insert_field],
deleted_fields: vec![delete_field],
updated_fields: vec![],
};
- self.notify_did_update_database(notified_changeset).await?;
+ send_notification(&params.view_id, DatabaseNotification::DidUpdateFields)
+ .payload(notified_changeset)
+ .send();
}
Ok(())