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)
selectedLanguageIds={
languageId && this.props.siteLanguages.includes(languageId)
? Array.of(languageId)
? [languageId]
: [0]
}
siteLanguages={this.props.siteLanguages}