Ensure saved search history does not appear when disabled.
This commit is contained in:
parent
f920a1aae8
commit
5af767decb
|
@ -48,6 +48,7 @@ export default {
|
|||
},
|
||||
async refreshSuggestions() {
|
||||
if (!this.searchText) {
|
||||
if (this.getPreferenceBoolean("searchHistory", false))
|
||||
this.searchSuggestions = JSON.parse(localStorage.getItem("search_history")) ?? [];
|
||||
} else {
|
||||
this.searchSuggestions = (
|
||||
|
|
Loading…
Reference in New Issue