Revert #1463, markdown default lang select

This commit is contained in:
Jay Sitter 2023-06-28 08:42:55 -04:00
parent 314aa796c0
commit 7be10eb35b
6 changed files with 6 additions and 34 deletions

View file

@ -274,12 +274,8 @@ export class MarkdownTextArea extends Component<
<LanguageSelect
iconVersion
allLanguages={this.props.allLanguages}
// Only set the selected language ID if it exists as an option
// in the dropdown; otherwise, set it to 0 (Undetermined)
selectedLanguageIds={
languageId && this.props.siteLanguages.includes(languageId)
? [languageId]
: [0]
languageId ? Array.of(languageId) : undefined
}
siteLanguages={this.props.siteLanguages}
onChange={this.handleLanguageChange}