cbind: handle properties with undefined value in cloneTemplateObject

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-01-15 13:09:56 +01:00
parent aedaf2b6f1
commit f27b0f68e3

View File

@ -110,6 +110,10 @@ Ext.define('Proxmox.Mixin.CBind', {
var res = {}, prop, el, copy;
for (prop in org) {
el = org[prop];
if (el === undefined || el === null) {
res[prop] = el;
continue;
}
if (el.constructor == Object && el.xtype) {
copy = cloneTemplateObject(el);
if (copy.cbind) {