Skip to content

Commit 2d4a85c

Browse files
committed
fix: Update m-table-body-row on 'NaN' margin-left error.
1 parent 72c5c1b commit 2d4a85c

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)