Skip to content

Commit

Permalink
Fixed an issue where empty cells would throw an error
Browse files Browse the repository at this point in the history
  • Loading branch information
vbruzzi committed May 30, 2022
1 parent 2f3fa10 commit af67b15
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 af67b15

Please sign in to comment.