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

This commit is contained in:
Richard Shiue 2024-03-02 18:27:34 +08:00 committed by GitHub
parent 79585d0835
commit f4170755fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(())