From a0c6e3102b656f981c0d6cf2c833f3fbf5570834 Mon Sep 17 00:00:00 2001 From: bkmartinjr Date: Wed, 30 May 2018 09:03:03 -0700 Subject: [PATCH] fix bug in fillBySelection --- src/util/typedCrossfilter/bitArray.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/typedCrossfilter/bitArray.js b/src/util/typedCrossfilter/bitArray.js index dd7c1eb3..49258aca 100644 --- a/src/util/typedCrossfilter/bitArray.js +++ b/src/util/typedCrossfilter/bitArray.js @@ -214,7 +214,8 @@ class BitArray { const bitmask = this.bitmask[0]; const bitarray = this.bitarray; for (let i = 0, len = this.length; i < len; i++) { - result[i] = bitarray[i] === bitmask ? selectedValue : deselectedValue; + result[i] = + bitmask && bitarray[i] === bitmask ? selectedValue : deselectedValue; } } else { for (let i = 0, len = this.length; i < len; i++) {