fix for error on blank search hints

This commit is contained in:
booploops 2021-12-09 01:02:58 -08:00
parent 1c9acb849d
commit 865fcc5ec9

View file

@ -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) {