From 865fcc5ec98517d5f89f02813c84a4fa97f1f823 Mon Sep 17 00:00:00 2001 From: booploops <49113086+booploops@users.noreply.github.com> Date: Thu, 9 Dec 2021 01:02:58 -0800 Subject: [PATCH] fix for error on blank search hints --- resources/cider-ui-tests/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/cider-ui-tests/index.js b/resources/cider-ui-tests/index.js index b78e56c4..fdb49c57 100644 --- a/resources/cider-ui-tests/index.js +++ b/resources/cider-ui-tests/index.js @@ -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) {