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.esm.js
CHANGED
@@ -14400,7 +14400,7 @@ const TableHead = /*#__PURE__*/React__default.memo(({
|
|
14400
14400
|
});
|
14401
14401
|
});
|
14402
14402
|
|
14403
|
-
const renderSpaces = (level, parentSiblings, isLast) => {
|
14403
|
+
const renderSpaces = (level, parentSiblings = [], isLast) => {
|
14404
14404
|
let siblingsArray = parentSiblings;
|
14405
14405
|
let isLastNode = isLast;
|
14406
14406
|
if (checkEmpty(parentSiblings)) {
|
@@ -14411,7 +14411,7 @@ const renderSpaces = (level, parentSiblings, isLast) => {
|
|
14411
14411
|
}
|
14412
14412
|
return jsx("div", {
|
14413
14413
|
className: "tree-table-space-container",
|
14414
|
-
children: siblingsArray
|
14414
|
+
children: siblingsArray?.reverse()?.map((line, i) => jsx("span", {
|
14415
14415
|
className: `tree-table-space-block ${!line ? 'no-lines' : ''} ${isLastNode && i === level - 1 ? 'last-node' : ''}`
|
14416
14416
|
}, i))
|
14417
14417
|
});
|