From 8a069404e4883462e1b6dd1a4bd832d311a84e83 Mon Sep 17 00:00:00 2001 From: "ma.gaoyu" Date: Thu, 28 Feb 2019 14:58:23 +0800 Subject: [PATCH] fix bug: When the threshold of search options is smaller than the threshold of create options, there is a exception thrown. --- flexsearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flexsearch.js b/flexsearch.js index 1922f4f..8ea54ed 100644 --- a/flexsearch.js +++ b/flexsearch.js @@ -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;