Skip to content

Commit 34946a4

Browse files
author
Volodymyr Zaets
committed
Merge remote-tracking branch 'origin/MAGETWO-52157' into PR
2 parents 57cecbc + 53ff5d2 commit 34946a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/components/dynamic-rows-configurable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ define([
153153
generateAssociatedProducts: function () {
154154
var productsIds = [];
155155

156-
this.getUnionInsertData().each(function (data) {
156+
this.getUnionInsertData().forEach(function (data) {
157157
if (data.id !== null) {
158158
productsIds.push(data.id);
159159
}

app/code/Magento/Ui/view/base/web/js/dynamic-rows/dynamic-rows-grid.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ define([
6464
* @returns {Object} Chainable.
6565
*/
6666
initChildren: function () {
67-
this.getChildItems().each(function (data, index) {
67+
this.getChildItems().forEach(function (data, index) {
6868
this.processingAddChild(data, this.startIndex + index, data[this.identificationDRProperty]);
6969
}, this);
7070

@@ -164,7 +164,7 @@ define([
164164
tmpObj = {};
165165

166166
if (data.length !== this.relatedData) {
167-
data.each(function (obj) {
167+
data.forEach(function (obj) {
168168
tmpObj[this.identificationDRProperty] = obj[this.identificationDRProperty];
169169

170170
if (!_.findWhere(this.relatedData, tmpObj)) {

0 commit comments

Comments
 (0)