fix: Use simpler syntax for languageId array
This commit is contained in:
parent
7cbdfce24c
commit
251592c1bf
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue