Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #89 from Stremio/fix/local-search-remove-duplicate…
Browse files Browse the repository at this point in the history
…-query

fix/local-search-remove-duplicate-query
  • Loading branch information
tymmesyde authored Jan 30, 2024
2 parents c4af063 + dd1fb1d commit 58fb818
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/model/serialize_local_search.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use gloo_utils::format::JsValueSerdeExt;
use itertools::Itertools;
use serde::Serialize;
use wasm_bindgen::JsValue;

Expand Down Expand Up @@ -35,6 +36,7 @@ pub fn serialize_local_search(local_search: &LocalSearch) -> JsValue {
query: name,
deep_links: LocalSearchItemDeepLinks::from(name).into_web_deep_links(),
})
.unique_by(|i| i.query)
.collect(),
})
.unwrap()
Expand Down

0 comments on commit 58fb818

Please sign in to comment.