Skip to content

Commit

Permalink
fix: Check for null summary row value
Browse files Browse the repository at this point in the history
  • Loading branch information
Domino987 committed Jan 28, 2022
1 parent 105a2db commit 3e93e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MTableSummaryRow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function MTableSummaryRow({
let value = '';
let style = getStyle({ columnDef: column, scrollWidth: 0 });

if (typeof summaryColumn === 'object') {
if (typeof summaryColumn === 'object' && summaryColumn !== null) {
value = summaryColumn.value;
style = summaryColumn.style;
} else {
Expand Down

0 comments on commit 3e93e91

Please sign in to comment.