nicer way to appease linter
This commit is contained in:
parent
4075cdde7f
commit
417d9b6af8
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue