Skip to content

Commit

Permalink
fix: Update m-table-body-row on 'NaN' margin-left error.
Browse files Browse the repository at this point in the history
  • Loading branch information
LuchoTurtle committed Jun 30, 2021
1 parent 72c5c1b commit 2d4a85c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/m-table-body-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,16 @@ export default function MTableBodyRow(props) {
const selectionWidth = CommonValues.selectionMaxWidth(
props,
props.treeDataMaxLevel
);
) || 0;

const styles =
size === 'medium'
? {
marginLeft: props.level * 9
marginLeft: props.level * 9 || 0
}
: {
padding: '4px',
marginLeft: 5 + props.level * 9
marginLeft: 5 + props.level * 9 || 0
};

return (
Expand Down

0 comments on commit 2d4a85c

Please sign in to comment.