Skip to content

Commit 40b1521

Browse files
authored
Merge pull request #1677 from jc21/fixes-custom-certificate-modal
Fixes custom certificate upload modal
2 parents 6392df3 + ac23c66 commit 40b1521

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

Lines changed: 5 additions & 3 deletions
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)