@pdg/react-table 1.0.49 → 1.0.50

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/dist/index.esm.js CHANGED
@@ -3306,8 +3306,6 @@ var TableTopHead = function (_a) {
3306
3306
  return (React__default.createElement(TableRow, null, columns.map(function (column, idx) { return (React__default.createElement(TableHeadCell, { key: idx, column: column, defaultAlign: defaultAlign, top: top, onCheckChange: onCheckChange })); })));
3307
3307
  }, [captionHeight, columns, defaultAlign, onCheckChange, row1Height, row2Height, row3Height]);
3308
3308
  // Render ------------------------------------------------------------------------------------------------------------
3309
- if ((!rows || rows.length === 0) && caption === null)
3310
- return null;
3311
3309
  if (rows) {
3312
3310
  if (Array.isArray(rows[0])) {
3313
3311
  return (React__default.createElement(TableHead, { className: 'TableHead' },
@@ -3342,7 +3340,9 @@ var TableTopHead = function (_a) {
3342
3340
  }
3343
3341
  }
3344
3342
  else {
3345
- return React__default.createElement(TableHead, { className: 'TableHead' }, captionRow);
3343
+ return (React__default.createElement(TableHead, { className: 'TableHead' },
3344
+ captionRow,
3345
+ columnRow));
3346
3346
  }
3347
3347
  };
3348
3348
  TableTopHead.displayName = 'TableTopHead';