Skip to content

Commit

Permalink
Update treenodelocator.js
Browse files Browse the repository at this point in the history
since globalState.pathIds is an array of strings, to compare it, rootNodeId has to be string too. Otherwise index wont be found. Tested in Chrome 131.0.6778.108
  • Loading branch information
marvin-bilharz authored and kingjia90 committed Dec 10, 2024
1 parent 8efec81 commit 76e112c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/pimcore/treenodelocator.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ pimcore.treenodelocator = function()
var locateConfig = globalState.locateConfigs[globalState.currentTreeIndex];
var tree = locateConfig.tree;
var rootNode = tree.tree.getRootNode();
var rootNodeId = rootNode.getId();
var rootNodeId = rootNode.getId().toString();

// Tree root may be shifted to a subnode and the item to be shown
// is out of tree scope - don't continue if this is the case:
Expand Down

0 comments on commit 76e112c

Please sign in to comment.