diff options
author | 2023-05-28 13:48:21 +0530 | |
---|---|---|
committer | 2023-05-28 13:48:21 +0530 | |
commit | 99ca310c73024b51fed1f3077375eed7827f2c20 (patch) | |
tree | 2bd15986f448129a2291acba90ccc6bf68a233e0 /src/components/ui/input | |
parent | Disable in-app auto-updates for portable windows installation (fixes #1088) (... (diff) | |
download | ferdium-app-99ca310c73024b51fed1f3077375eed7827f2c20.tar.gz ferdium-app-99ca310c73024b51fed1f3077375eed7827f2c20.tar.zst ferdium-app-99ca310c73024b51fed1f3077375eed7827f2c20.zip |
Fix issues reported by sonarqube linter
Diffstat (limited to 'src/components/ui/input')
-rw-r--r-- | src/components/ui/input/index.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/ui/input/index.tsx b/src/components/ui/input/index.tsx index fe8f35607..064c1807f 100644 --- a/src/components/ui/input/index.tsx +++ b/src/components/ui/input/index.tsx | |||
@@ -67,7 +67,7 @@ class Input extends Component<IProps, IState> { | |||
67 | componentDidMount(): void { | 67 | componentDidMount(): void { |
68 | const { focus = false, data = {} } = this.props; | 68 | const { focus = false, data = {} } = this.props; |
69 | 69 | ||
70 | if (this.inputElement && this.inputElement.current) { | 70 | if (this.inputElement?.current) { |
71 | if (focus) { | 71 | if (focus) { |
72 | this.inputElement.current.focus(); | 72 | this.inputElement.current.focus(); |
73 | } | 73 | } |