mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
nicer way to appease linter
This commit is contained in:
parent
4075cdde7f
commit
417d9b6af8
@ -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";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user