diff --git a/core/modules/field_ui/field_ui.js b/core/modules/field_ui/field_ui.js index 950df384ca7cdaae2dcc86780002c3a480f5f1a0..10f5581e50c438e87c79e3e9678fd9bcaa90f11e 100644 --- a/core/modules/field_ui/field_ui.js +++ b/core/modules/field_ui/field_ui.js @@ -365,10 +365,14 @@ // disabled previously. Pseudo-fields do not have default formatters, // we just return to 'visible' for those. if (this.region === 'hidden') { + const pluginSelect = + typeof this.$pluginSelect.find('option')[0] !== 'undefined' + ? this.$pluginSelect.find('option')[0].value + : undefined; const value = typeof this.defaultPlugin !== 'undefined' ? this.defaultPlugin - : this.$pluginSelect.find('option')[0].value; + : pluginSelect; if (typeof value !== 'undefined') { if (this.$pluginSelect.length) {