mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: re-implement get_filter_by_field_id function (#4678)
* chore: remove inaccurate database view function * chore: update collab rev * chore: fix clippy --------- Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
@ -1528,7 +1528,9 @@ impl DatabaseViewOperation for DatabaseViewOperationImpl {
|
||||
self
|
||||
.database
|
||||
.lock()
|
||||
.get_filter_by_field_id::<Filter>(view_id, field_id)
|
||||
.get_all_filters::<Filter>(view_id)
|
||||
.into_iter()
|
||||
.find(|filter| filter.field_id == field_id)
|
||||
}
|
||||
|
||||
fn get_layout_setting(&self, view_id: &str, layout_ty: &DatabaseLayout) -> Option<LayoutSetting> {
|
||||
|
Reference in New Issue
Block a user