mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-03 04:53:26 +00:00
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:
parent
f27b0f68e3
commit
1d5e523aa0
@ -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) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user