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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pixel-react",
3
3
  "description": "Great for pixel-perfect, design-focused components in React",
4
- "version": "1.9.3",
4
+ "version": "1.9.4",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
7
7
  "types": "lib/index.d.ts",
@@ -8,7 +8,7 @@ import { checkEmpty } from '../../../utils/checkEmpty/checkEmpty';
8
8
 
9
9
  const renderSpaces = (
10
10
  level: number,
11
- parentSiblings: boolean[],
11
+ parentSiblings: boolean[] = [],
12
12
  isLast?: boolean | undefined
13
13
  ) => {
14
14
  let siblingsArray = parentSiblings;
@@ -21,10 +21,9 @@ const renderSpaces = (
21
21
  }
22
22
  }
23
23
 
24
- parentSiblings;
25
24
  return (
26
25
  <div className="tree-table-space-container">
27
- {siblingsArray.reverse().map((line, i) => (
26
+ {siblingsArray?.reverse()?.map((line, i) => (
28
27
  <span
29
28
  key={i}
30
29
  className={`tree-table-space-block ${!line ? 'no-lines' : ''} ${