nicer way to appease linter

This commit is contained in:
David Baker 2019-08-12 11:50:11 +01:00
parent 4075cdde7f
commit 417d9b6af8

View file

@ -138,7 +138,7 @@ export default class Field extends React.PureComponent {
render() { render() {
const { element, prefix, onValidate, children, tooltip, ...inputProps } = this.props; const { element, prefix, onValidate, children, tooltip, ...inputProps } = this.props;
!tooltip; // needs to be removed from props but we don't need it here, so otherwise unused variable delete inputProps.tooltip; // needs to be removed from props but we don't need it here
const inputElement = element || "input"; const inputElement = element || "input";