We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 41b60a4 + 5564158 commit 5b19d3cCopy full SHA for 5b19d3c
app/code/Magento/Catalog/view/adminhtml/web/js/category-tree.js
@@ -37,8 +37,8 @@ define([
37
ajax: {
38
url: options.url,
39
type: 'POST',
40
- success: $.proxy(function (node) {
41
- return this._convertData(node[0]);
+ success: $.proxy(function (nodes) {
+ return this._convertDataNodes(nodes);
42
}, this),
43
44
/**
@@ -77,6 +77,21 @@ define([
77
}
78
},
79
80
+ /**
81
+ * @param {Array} nodes
82
+ * @returns {Array}
83
+ * @private
84
+ */
85
+ _convertDataNodes: function (nodes) {
86
+ var nodesData = [];
87
+
88
+ nodes.forEach(function (node) {
89
+ nodesData.push(this._convertData(node));
90
+ }, this);
91
92
+ return nodesData;
93
+ },
94
95
96
* @param {Object} node
97
* @return {*}
0 commit comments