mixin cbind: avoid undefined cbindData access

Else we can fail at the first fallback check in getConfigValue while
we still have the possibility to have the cbinded key available in
"me" (initial config).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-01-23 13:42:02 +01:00
parent f27b0f68e3
commit 1d5e523aa0

View File

@ -11,8 +11,9 @@ Ext.define('Proxmox.Mixin.CBind', {
var me = this;
if (typeof(me.cbindData) == "function") {
me.cbindData = me.cbindData(me.initialConfig) || {};
me.cbindData = me.cbindData(me.initialConfig);
}
me.cbindData = me.cbindData || {};
var getConfigValue = function(cname) {