Skip to content

Commit

Permalink
Prettified Code!
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrn authored and actions-user committed Aug 23, 2020
1 parent 829edfc commit cdddff0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/m-table-body-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,12 @@ export default class MTableBodyRow extends React.Component {
if (typeof this.props.options.rowStyle === "function") {
style = {
...style,
...this.props.options.rowStyle(this.props.data, index, level, this.props.hasAnyEditingRow),
...this.props.options.rowStyle(
this.props.data,
index,
level,
this.props.hasAnyEditingRow
),
};
} else if (this.props.options.rowStyle) {
style = {
Expand All @@ -333,7 +338,7 @@ export default class MTableBodyRow extends React.Component {
}

if (this.props.hasAnyEditingRow) {
style.opacity = (style.opacity) ? style.opacity : 0.2;
style.opacity = style.opacity ? style.opacity : 0.2;
}

return style;
Expand Down

0 comments on commit cdddff0

Please sign in to comment.