Skip to content

Commit ab80fe1

Browse files
chaptergythe1ts
authored andcommitted
Fixes custom certificate upload modal
1 parent 5d106c4 commit ab80fe1

File tree

1 file changed

+5
-3
lines changed
  • frontend/js/app/nginx/certificates

1 file changed

+5
-3
lines changed

frontend/js/app/nginx/certificates/form.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,11 @@ module.exports = Mn.View.extend({
278278
this.ui.credentials_file_content.hide();
279279
this.ui.loader_content.hide();
280280
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);
281+
if (this.ui.domain_names[0]) {
282+
const domainNames = this.ui.domain_names[0].value.split(',');
283+
if (!domainNames || domainNames.length === 0 || (domainNames.length === 1 && domainNames[0] === "")) {
284+
this.ui.test_domains_button.prop('disabled', true);
285+
}
284286
}
285287
},
286288

0 commit comments

Comments
 (0)