forked from mirrors/bookwyrm
Avoid console error
This commit is contained in:
parent
80efd58881
commit
fc06f0cdd1
1 changed files with 2 additions and 2 deletions
|
@ -43,11 +43,11 @@
|
|||
function getSuggestions(input, trie) {
|
||||
// Follow the trie through the provided input
|
||||
input.split("").forEach((letter) => {
|
||||
trie = trie[letter];
|
||||
|
||||
if (!trie) {
|
||||
return;
|
||||
}
|
||||
|
||||
trie = trie[letter];
|
||||
});
|
||||
|
||||
if (!trie) {
|
||||
|
|
Loading…
Reference in a new issue