We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 158036b commit ec55b0aCopy full SHA for ec55b0a
ui.frontend/src/view/FormOptionFieldBase.js
@@ -122,7 +122,9 @@ class FormOptionFieldBase extends FormFieldBase {
122
} else {
123
[...this.getOptions()].forEach((option, index) => {
124
let span = option.querySelector('span');
125
- span.innerHTML = window.DOMPurify ? window.DOMPurify.sanitize(newEnumNames[index]) : newEnumNames[index];
+ if(span) {
126
+ span.innerHTML = window.DOMPurify ? window.DOMPurify.sanitize(newEnumNames[index]) : newEnumNames[index];
127
+ }
128
});
129
}
130
0 commit comments