Skip to content

Commit 05a8d80

Browse files
author
perploug
committed
Fixes broken refresh action
Refresh action referenced the tree, not its root node
1 parent c2d978a commit 05a8d80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Umbraco.Web.UI.Client/src/common/services/menuactions.service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ function umbracoMenuActions($q, treeService, $location, navigationService, appSt
3939

4040
//to find a visible tree node, we'll go get the currently loaded root node from appState
4141
var treeRoot = appState.getTreeState("currentRootNode");
42-
if (treeRoot) {
43-
var treeNode = treeService.getDescendantNode(treeRoot, args.entity.id, args.treeAlias);
42+
if (treeRoot && treeRoot.root) {
43+
var treeNode = treeService.getDescendantNode(treeRoot.root, args.entity.id, args.treeAlias);
4444
if (treeNode) {
4545
treeService.loadNodeChildren({ node: treeNode, section: args.section });
4646
}

0 commit comments

Comments
 (0)