ui: ceph: fix keeping selection after operation

Found by having the console open and getting a message that 'me' (the
controller) does not have a method getRootNode()

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2021-01-26 14:01:12 +01:00 committed by Thomas Lamprecht
parent fa8d397162
commit b6b4c816a4

View File

@ -348,7 +348,7 @@ Ext.define('PVE.node.CephOsdTree', {
view.setRootNode(data.root);
view.expandAll();
if (name) {
let node = me.getRootNode().findChild('name', name, true);
let node = view.getRootNode().findChild('name', name, true);
if (node) {
view.setSelection([node]);
}