mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: reorder grid field updating all views (#4791)
This commit is contained in:
parent
79585d0835
commit
f4170755fa
@ -594,13 +594,15 @@ impl DatabaseEditor {
|
|||||||
index: index as i32,
|
index: index as i32,
|
||||||
};
|
};
|
||||||
let notified_changeset = DatabaseFieldChangesetPB {
|
let notified_changeset = DatabaseFieldChangesetPB {
|
||||||
view_id: params.view_id,
|
view_id: params.view_id.clone(),
|
||||||
inserted_fields: vec![insert_field],
|
inserted_fields: vec![insert_field],
|
||||||
deleted_fields: vec![delete_field],
|
deleted_fields: vec![delete_field],
|
||||||
updated_fields: vec![],
|
updated_fields: vec![],
|
||||||
};
|
};
|
||||||
|
|
||||||
self.notify_did_update_database(notified_changeset).await?;
|
send_notification(¶ms.view_id, DatabaseNotification::DidUpdateFields)
|
||||||
|
.payload(notified_changeset)
|
||||||
|
.send();
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
Reference in New Issue
Block a user