Skip to content

Commit bbdaed7

Browse files
authored
Merge pull request material-table-core#239 from LuchoTurtle/nan-grouping-margin
Fixing 'NaN' margin-left error on 'm-table-body-row'
2 parents 72c5c1b + 2d4a85c commit bbdaed7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/m-table-body-row.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,16 @@ export default function MTableBodyRow(props) {
158158
const selectionWidth = CommonValues.selectionMaxWidth(
159159
props,
160160
props.treeDataMaxLevel
161-
);
161+
) || 0;
162162

163163
const styles =
164164
size === 'medium'
165165
? {
166-
marginLeft: props.level * 9
166+
marginLeft: props.level * 9 || 0
167167
}
168168
: {
169169
padding: '4px',
170-
marginLeft: 5 + props.level * 9
170+
marginLeft: 5 + props.level * 9 || 0
171171
};
172172

173173
return (

0 commit comments

Comments
 (0)