fix nodeselector when no element in the tree is selected
it can happen that nothing in the tree is selected, then PVE.curSelectedNode is undefined, generating an exception there. so we check if this is available Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
92dcef738a
commit
a150a3d32e
@ -94,7 +94,7 @@ Ext.define('PVE.form.NodeSelector', {
|
||||
initComponent: function() {
|
||||
var me = this;
|
||||
|
||||
if (me.selectCurNode && PVE.curSelectedNode.data.node) {
|
||||
if (me.selectCurNode && PVE.curSelectedNode && PVE.curSelectedNode.data.node) {
|
||||
me.preferredValue = PVE.curSelectedNode.data.node;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user