diff --git a/packages/netlify-cms-widget-code/src/CodeControl.js b/packages/netlify-cms-widget-code/src/CodeControl.js index 0d960c23..de70bd66 100644 --- a/packages/netlify-cms-widget-code/src/CodeControl.js +++ b/packages/netlify-cms-widget-code/src/CodeControl.js @@ -122,7 +122,7 @@ export default class CodeControl extends React.Component { getInitialLang = () => { const { value, field } = this.props; const lang = - (this.valueIsMap() && value && value.get(this.keys.lang)) || field.get('defaultLanguage'); + (this.valueIsMap() && value && value.get(this.keys.lang)) || field.get('default_language'); const langInfo = this.getLanguageByName(lang); if (lang && !langInfo) { this.setState({ unknownLang: lang });