Skip to content

Commit

Permalink
fix bug: When the threshold of search options is smaller than the thr…
Browse files Browse the repository at this point in the history
…eshold of create options, there is a exception thrown.
  • Loading branch information
ma.gaoyu committed Feb 28, 2019
1 parent 376da38 commit 8a06940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flexsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -1883,7 +1883,7 @@

for(let z = 0; z < (resolution - threshold); z++){

if((map_value = map[z][value])){
if((map_value = (map[z] && map[z][value]))){

map_check[count++] = map_value;
map_found = true;
Expand Down

0 comments on commit 8a06940

Please sign in to comment.