fix undefined access on acme variable

We have 4 call sites of that, one had a fallback - the other three
was totally unchecked and triggered already exceptions on panel
render ... -.-

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-05-06 19:11:12 +02:00
parent fd2542336b
commit 6ac64c3aed
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ Ext.define('PVE.Parser', { statics: {
parseACME: function(value) {
if (!value) {
return;
return {};
}
var res = {};

View File

@ -205,7 +205,7 @@ Ext.define('PVE.node.ACMEDomainEdit', {
};
let configkey = olddomain.configkey;
let acmeObj = PVE.Parser.parseACME(nodeconfig.acme) || {};
let acmeObj = PVE.Parser.parseACME(nodeconfig.acme);
if (values.type === 'dns') {
if (!olddomain.configkey || olddomain.configkey === 'acme') {