Skip to content

Commit

Permalink
Merge pull request #1926 from vbruzzi/vbruzzi/isEmpty_error
Browse files Browse the repository at this point in the history
Fixed an issue where empty cells would throw an error
  • Loading branch information
wdh2100 authored Aug 5, 2022
2 parents 2f3fa10 + af67b15 commit e94d15b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/TableBodyCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function TableBodyCell(props) {
className,
print,
tableId,
isEmpty,
...otherProps
} = props;
const onCellClick = options.onCellClick;
Expand Down Expand Up @@ -173,7 +174,7 @@ function TableBodyCell(props) {
if (
['standard', 'scrollMaxHeight', 'scrollFullHeight', 'scrollFullHeightFullWidth'].indexOf(options.responsive) !==
-1 ||
props.isEmpty
isEmpty
) {
innerCells = cells.slice(1, 2);
} else {
Expand Down

0 comments on commit e94d15b

Please sign in to comment.