Skip to content

Commit

Permalink
[JENKINS-49702] remove columns from props (#1687)
Browse files Browse the repository at this point in the history
  • Loading branch information
scherler authored and vivek committed Mar 9, 2018
1 parent 1c8b7a3 commit 08b6f1b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jenkins-design-language/src/js/components/jtable/JTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,12 @@ export class JTable extends Component {
newChildren.push(React.cloneElement(child, newChildProps));
}
});

// div element does not know anything about columns, to prevent warnings remove columns from props
if (restProps.columns) {
delete restProps.columns;
}
const newProps = {
...restProps,
columns: undefined,
className: classNames.join(' '),
};

Expand Down

0 comments on commit 08b6f1b

Please sign in to comment.