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/textarea/index.tsx | |
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/textarea/index.tsx')
-rw-r--r-- | src/components/ui/textarea/index.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/ui/textarea/index.tsx b/src/components/ui/textarea/index.tsx index 89e85ac11..fbdef7fc6 100644 --- a/src/components/ui/textarea/index.tsx +++ b/src/components/ui/textarea/index.tsx | |||
@@ -38,7 +38,7 @@ class TextareaComponent extends Component<IProps> { | |||
38 | componentDidMount() { | 38 | componentDidMount() { |
39 | const { data } = this.props; | 39 | const { data } = this.props; |
40 | 40 | ||
41 | if (this.textareaRef && this.textareaRef.current && data) { | 41 | if (this.textareaRef?.current && data) { |
42 | Object.keys(data).map( | 42 | Object.keys(data).map( |
43 | key => (this.textareaRef.current!.dataset[key] = data[key]), | 43 | key => (this.textareaRef.current!.dataset[key] = data[key]), |
44 | ); | 44 | ); |