From: Jay Sitter Date: Sat, 24 Jun 2023 02:09:27 +0000 (-0400) Subject: fix: Use simpler syntax for languageId array X-Git-Url: http://these/git/%7B%60https:/%7B%24%7B%60data:application/%7B%7D/static/gitweb.js?a=commitdiff_plain;h=251592c1bffd134121db1bc4d0e44df0e321aae8;p=lemmy-ui.git fix: Use simpler syntax for languageId array --- diff --git a/src/shared/components/common/markdown-textarea.tsx b/src/shared/components/common/markdown-textarea.tsx index 119913d..2d306dc 100644 --- a/src/shared/components/common/markdown-textarea.tsx +++ b/src/shared/components/common/markdown-textarea.tsx @@ -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}