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:
Richard Shiue
2024-02-22 08:07:59 +08:00
committed by GitHub
parent 6636731487
commit f1831d07af
11 changed files with 49 additions and 46 deletions

View File

@ -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> {