mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-01 10:09:56 +00:00
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)
|
// 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}
|
||||||
|
|
Loading…
Reference in a new issue