From ae1cad9f3a1cf7909c6335aed587bab40879581e Mon Sep 17 00:00:00 2001 From: dougbradbury Date: Thu, 28 Oct 2021 16:54:51 -0500 Subject: [PATCH] define 0 as not an empty value. This Util function caused ranges that cross 0 to go haywire by setting the value to the minValue when it hit 0. --- src/Utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Utils.js b/src/Utils.js index 194061c..0f8e86d 100644 --- a/src/Utils.js +++ b/src/Utils.js @@ -9,6 +9,7 @@ export const isEmpty = (x) => { return x === ""; } + if (x===0) return false; if (!x) return true; if (x === {}) return true; if (x === []) return true;