You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
nicer way to appease linter
This commit is contained in:
@@ -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";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user