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.
1 parent dffe94d commit ca5e527Copy full SHA for ca5e527
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,22 @@ define([
77
}
78
},
79
80
+ /**
81
+ * @param nodes {Array}
82
+ * @returns {Array}
83
+ * @private
84
+ */
85
+ _convertDataNodes(nodes)
86
+ {
87
+ var nodesData = [];
88
+
89
+ nodes.forEach(function(node) {
90
+ nodesData.push(this._convertData(node));
91
+ }, this);
92
93
+ return nodesData;
94
+ },
95
96
97
* @param {Object} node
98
* @return {*}
0 commit comments