fix for error on blank search hints
This commit is contained in:
parent
1c9acb849d
commit
865fcc5ec9
1 changed files with 3 additions and 2 deletions
|
@ -317,10 +317,11 @@ const app = new Vue({
|
|||
},
|
||||
async getSearchHints() {
|
||||
if(this.search.term == "") {
|
||||
this.search.hints = ""
|
||||
this.search.hints = []
|
||||
return
|
||||
}
|
||||
let hints = await app.mkapi("searchHints", false, this.search.term)
|
||||
this.search.hints = hints.terms
|
||||
this.search.hints = hints ? hints.terms : []
|
||||
},
|
||||
getSongProgress() {
|
||||
if(this.playerLCD.userInteraction) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue