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/%22https:/image.com/static/bundle.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}