diff --git a/src/components/SearchSuggestions.vue b/src/components/SearchSuggestions.vue index a110b9f7..2b5f9d80 100644 --- a/src/components/SearchSuggestions.vue +++ b/src/components/SearchSuggestions.vue @@ -48,7 +48,8 @@ export default { }, async refreshSuggestions() { if (!this.searchText) { - this.searchSuggestions = JSON.parse(localStorage.getItem("search_history")) ?? []; + if (this.getPreferenceBoolean("searchHistory", false)) + this.searchSuggestions = JSON.parse(localStorage.getItem("search_history")) ?? []; } else { this.searchSuggestions = ( await this.fetchJson(this.apiUrl() + "/opensearch/suggestions", {