mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Fix error message when calling remove on undefined DOM element
This commit is contained in:
@@ -442,7 +442,7 @@ function(ConfigurationUtils, i18n, $rootScope) {
|
||||
} else if (!isRequired) {
|
||||
elm.removeAttr('required');
|
||||
if (!attrs.awrequiredAlwaysShowAsterisk) {
|
||||
$(label).find('span.Form-requiredAsterisk')[0].remove();
|
||||
$(label).find('span.Form-requiredAsterisk').remove();
|
||||
}
|
||||
}
|
||||
if (isRequired && (viewValue === undefined || viewValue === null || viewValue === '')) {
|
||||
|
||||
Reference in New Issue
Block a user