pixel-react 1.9.3 → 1.9.4

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.
package/lib/index.js CHANGED
@@ -14420,7 +14420,7 @@ const TableHead = /*#__PURE__*/React.memo(({
14420
14420
  });
14421
14421
  });
14422
14422
 
14423
- const renderSpaces = (level, parentSiblings, isLast) => {
14423
+ const renderSpaces = (level, parentSiblings = [], isLast) => {
14424
14424
  let siblingsArray = parentSiblings;
14425
14425
  let isLastNode = isLast;
14426
14426
  if (checkEmpty(parentSiblings)) {
@@ -14431,7 +14431,7 @@ const renderSpaces = (level, parentSiblings, isLast) => {
14431
14431
  }
14432
14432
  return jsxRuntime.jsx("div", {
14433
14433
  className: "tree-table-space-container",
14434
- children: siblingsArray.reverse().map((line, i) => jsxRuntime.jsx("span", {
14434
+ children: siblingsArray?.reverse()?.map((line, i) => jsxRuntime.jsx("span", {
14435
14435
  className: `tree-table-space-block ${!line ? 'no-lines' : ''} ${isLastNode && i === level - 1 ? 'last-node' : ''}`
14436
14436
  }, i))
14437
14437
  });