Skip to content

Commit 65019ab

Browse files
committed
declare var to fix scope error #15265
1 parent a49e16d commit 65019ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Catalog/view/adminhtml/web/js/category-checkbox-tree.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,14 @@ define([
162162
* @returns {void}
163163
*/
164164
categoryLoader.buildCategoryTree = function (parent, config) {// eslint-disable-line no-shadow
165+
var i = 0;
165166

166167
if (!config) {
167168
return null;
168169
}
169170

170171
if (parent && config && config.length) {
171-
for (var i = 0; i < config.length; i++) {
172+
for (i; i < config.length; i++) {
172173
categoryLoader.processCategoryTree(parent, config, i);
173174
}
174175
}

0 commit comments

Comments
 (0)