fix: Use simpler syntax for languageId array

This commit is contained in:
Jay Sitter 2023-06-23 22:09:27 -04:00
parent 7cbdfce24c
commit 251592c1bf

View file

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