File tree 1 file changed +3
-2
lines changed
app/code/Magento/Catalog/view/adminhtml/web/js
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -162,13 +162,14 @@ define([
162
162
* @returns {void }
163
163
*/
164
164
categoryLoader . buildCategoryTree = function ( parent , config ) { // eslint-disable-line no-shadow
165
+ var i = 0 ;
165
166
166
167
if ( ! config ) {
167
168
return null ;
168
169
}
169
170
170
171
if ( parent && config && config . length ) {
171
- for ( i = 0 ; i < config . length ; i ++ ) {
172
+ for ( i ; i < config . length ; i ++ ) {
172
173
categoryLoader . processCategoryTree ( parent , config , i ) ;
173
174
}
174
175
}
@@ -185,7 +186,7 @@ define([
185
186
if ( ( node . childNodes . length > 0 ) || ( node . loaded === false && node . loading === false ) ) {
186
187
hash . children = [ ] ;
187
188
188
- for ( i = 0 , len = node . childNodes . length ; i < len ; i ++ ) {
189
+ for ( var i = 0 , len = node . childNodes . length ; i < len ; i ++ ) {
189
190
/* eslint-disable */
190
191
if ( ! hash . children ) {
191
192
hash . children = [ ] ;
You can’t perform that action at this time.
0 commit comments