]> Untitled Git - lemmy-ui.git/commitdiff
fix: Use simpler syntax for languageId array
authorJay Sitter <jay@jaysitter.com>
Sat, 24 Jun 2023 02:09:27 +0000 (22:09 -0400)
committerJay Sitter <jay@jaysitter.com>
Sat, 24 Jun 2023 02:09:27 +0000 (22:09 -0400)
src/shared/components/common/markdown-textarea.tsx

index 119913d36d0ba62f5f56b6b69b31feb5368d58c0..2d306dcad9263ef3ede96cd0b1b3c326845ffb27 100644 (file)
@@ -264,7 +264,7 @@ export class MarkdownTextArea extends Component<
                 // in the dropdown; otherwise, set it to 0 (Undetermined)
                 selectedLanguageIds={
                   languageId && this.props.siteLanguages.includes(languageId)
-                    ? Array.of(languageId)
+                    ? [languageId]
                     : [0]
                 }
                 siteLanguages={this.props.siteLanguages}