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.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: search results were filtered accidentally (#7196)
Lucasaa9f285f5967
diff --git a/frontend/rust-lib/flowy-search/src/document/handler.rs b/frontend/rust-lib/flowy-search/src/document/handler.rsindex 5fff107b74..4f963033e0 100644--- a/frontend/rust-lib/flowy-search/src/document/handler.rs+++ b/frontend/rust-lib/flowy-search/src/document/handler.rs@@ -57,11 +57,11 @@ impl SearchHandler for DocumentSearchHandler {// Grab all views from folder cache// Notice that `get_all_view_pb` returns Views that don't include trashed and private views- let mut views = self.folder_manager.get_all_views_pb().await?.into_iter();+ let views = self.folder_manager.get_all_views_pb().await?;let mut search_results: Vec<SearchResultPB> = vec![];for result in results {- if let Some(view) = views.find(|v| v.id == result.object_id) {+ if let Some(view) = views.iter().find(|v| v.id == result.object_id) {// If there is no View for the result, we don't add it to the results// If possible we will extract the icon to display for the resultlet icon: Option<ResultIconPB> = match view.icon.clone() {