Skip to content

Commit 59473ea

Browse files
Merge pull request #60 from magento-trigger/AC-107
[Trigger] jsTree Upgrade
2 parents 68e216c + 39f8f49 commit 59473ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

AdobeStockImageAdminUi/view/adminhtml/web/js/components/grid/column/preview/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ define([
319319
if (this.isMediaBrowser()) {
320320
activeNode = this.getMageMediaBrowserData().activeNode;
321321

322-
activeNodePath = _.isUndefined(activeNode.path) ? '' : activeNode.path;
322+
activeNodePath = _.isUndefined(activeNode.original.path) ? '' : activeNode.original.path;
323323
} else {
324324
activeNodePath = this.imageDirectory().activeNode() || '';
325325
}

AdobeStockImageAdminUi/view/adminhtml/web/js/media-gallery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ define([
109109
folderPath = folderPath + '/' + folderPathParts[i];
110110
}
111111
pathId = Base64.idEncode(folderPath);
112-
openFolderButton = $('.jstree li[data-id="' + pathId + '"]').children('.jstree-icon');
112+
openFolderButton = $('.jstree li[data-id="' + pathId + '"].jstree-closed').children('.jstree-icon');
113113

114114
if (openFolderButton.length) {
115115
openFolderButton.click();

0 commit comments

Comments
 (0)