diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/treeList.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/treeList.js index 85c6f0992..e06fa1df4 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/common/treeList.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/common/treeList.js @@ -188,7 +188,10 @@ } else { that._topList.find(".focus").removeClass("focus") } - target.treeList.label.addClass('focus') + if (target.treeList.label) { + target.treeList.label.addClass('focus') + } + that.reveal(target); } }); this._data = [];