We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d106c4 commit ab80fe1Copy full SHA for ab80fe1
frontend/js/app/nginx/certificates/form.js
@@ -278,9 +278,11 @@ module.exports = Mn.View.extend({
278
this.ui.credentials_file_content.hide();
279
this.ui.loader_content.hide();
280
this.ui.le_error_info.hide();
281
- const domainNames = this.ui.domain_names[0].value.split(',');
282
- if (!domainNames || domainNames.length === 0 || (domainNames.length === 1 && domainNames[0] === "")) {
283
- this.ui.test_domains_button.prop('disabled', true);
+ if (this.ui.domain_names[0]) {
+ const domainNames = this.ui.domain_names[0].value.split(',');
+ if (!domainNames || domainNames.length === 0 || (domainNames.length === 1 && domainNames[0] === "")) {
284
+ this.ui.test_domains_button.prop('disabled', true);
285
+ }
286
}
287
},
288
0 commit comments