@northlight/ui 2.28.11 → 2.28.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1635,7 +1635,7 @@
1635
1635
  onChange = ramda.identity,
1636
1636
  rect
1637
1637
  }) => {
1638
- const [max, setMax] = React.useState(typeof rect === "undefined" ? initMax : 0);
1638
+ const [max, setMax] = React.useState(ramda.isNil(rect) ? initMax : 0);
1639
1639
  const [windowState, setWindowState] = React.useState(EMPTY_WINDOW);
1640
1640
  const isLocked = React.useRef(false);
1641
1641
  const nbrChildren = React.Children.count(children);