From 417d9b6af84994cfee7781c1face8e174d076fe5 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 12 Aug 2019 11:50:11 +0100 Subject: [PATCH] nicer way to appease linter --- src/components/views/elements/Field.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/elements/Field.js b/src/components/views/elements/Field.js index b432bd0b8f..c414c35b0b 100644 --- a/src/components/views/elements/Field.js +++ b/src/components/views/elements/Field.js @@ -138,7 +138,7 @@ export default class Field extends React.PureComponent { render() { 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";