Skip to content
Snippets Groups Projects
Commit 23d255e5 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

prevent error when inflection suggestions are null

parent aff8dc7d
No related branches found
No related tags found
No related merge requests found
......@@ -214,7 +214,7 @@ function navigate_to_query(self, word) {
if (!self.search_results.nn[0]) {
console.log("SUGGEST ERROR: no nn results")
}
return !self.search_results.nn[0].suggest.includes(item[0])
else return !self.search_results.nn[0].suggest.includes(item[0])
}
})
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment