Skip to content

Commit a4be3e0

Browse files
committed
#30347 : fix js error on delete bundle options
1 parent e08499b commit a4be3e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Bundle/view/adminhtml/web/js/components/bundle-dynamic-rows.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ define([
7272
*/
7373
removeBundleItemsFromOption: function (index) {
7474
var bundleSelections = registry.get(this.name + '.' + index + '.' + this.bundleSelectionsName),
75-
bundleSelectionsLength = (bundleSelections.elems() || []).length,
75+
bundleSelectionsLength = bundleSelections ? (bundleSelections.elems() || []).length:[],
7676
i;
7777

7878
if (bundleSelectionsLength) {

0 commit comments

Comments
 (0)