mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 07:52:19 +00:00
fix: Use simpler syntax for languageId array
This commit is contained in:
parent
7cbdfce24c
commit
251592c1bf
|
@ -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