es-grid-template 1.8.40 → 1.8.41

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.
@@ -35,7 +35,7 @@ const TableHead = ({
35
35
  // const colSpan = col.getLeafColumns().length || 1;
36
36
  const colSpan = column.columns.length || 1;
37
37
  const rowSpan = column.columns?.length > 0 ? 1 : headerDepth - depth;
38
- const header = headerGroups.find(it => it.id === column.id || it.column.id === column.id && it.subHeaders.length >= 2);
38
+ const header = headerGroups.find(it => it.id === column.id || it.column.id === column.id && it.subHeaders.length > 0);
39
39
  // const groupHeader = headerGroups.find((it) => it.column.id === column.id && it.subHeaders.length >= 2)
40
40
 
41
41
  if (header?.subHeaders && header.subHeaders.length >= 2) {
@@ -45,7 +45,7 @@ const TableHead = ({
45
45
  // const colSpan = col.getLeafColumns().length || 1;
46
46
  const colSpan = column.columns.length || 1;
47
47
  const rowSpan = column.columns?.length > 0 ? 1 : headerDepth - depth;
48
- const header = headerGroups.find(it => it.id === column.id || it.column.id === column.id && it.subHeaders.length >= 2);
48
+ const header = headerGroups.find(it => it.id === column.id || it.column.id === column.id && it.subHeaders.length > 0);
49
49
  // const groupHeader = headerGroups.find((it) => it.column.id === column.id && it.subHeaders.length >= 2)
50
50
 
51
51
  if (header?.subHeaders && header.subHeaders.length >= 2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-grid-template",
3
- "version": "1.8.40",
3
+ "version": "1.8.41",
4
4
  "description": "es-grid-template",
5
5
  "keywords": [
6
6
  "react",