diff --git a/src/components/SearchSuggestions.vue b/src/components/SearchSuggestions.vue index 794085db..0450a5db 100644 --- a/src/components/SearchSuggestions.vue +++ b/src/components/SearchSuggestions.vue @@ -51,11 +51,12 @@ export default { if (this.getPreferenceBoolean("searchHistory", false)) this.searchSuggestions = JSON.parse(localStorage.getItem("search_history")) ?? []; } else { - this.searchSuggestions = ( - await this.fetchJson(this.apiUrl() + "/opensearch/suggestions", { - query: this.searchText, - }) - )?.[1]; + this.searchSuggestions = + ( + await this.fetchJson(this.apiUrl() + "/opensearch/suggestions", { + query: this.searchText, + }) + )?.[1] ?? []; } this.searchSuggestions.unshift(this.searchText); this.setSelected(0); diff --git a/src/components/VideoPlayer.vue b/src/components/VideoPlayer.vue index f8a25654..0787dd9e 100644 --- a/src/components/VideoPlayer.vue +++ b/src/components/VideoPlayer.vue @@ -23,6 +23,7 @@