Skip to content

Commit f96c5c1

Browse files
author
Oleksii Korshenko
committed
MAGETWO-81991: Checkout page could hang for Javascript error #10975
- Merge Pull Request #10975 from angelo983/magento2:2.1-develop - Merged commits: 1. 60f47fc
2 parents 8b54e5a + 60f47fc commit f96c5c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/utils/arrays.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ define([
101101
newIndex,
102102
target;
103103

104-
if (typeof position === 'undefined') {
104+
if (typeof position === 'undefined' || position == null) {
105105
position = -1;
106106
} else if (typeof position === 'string') {
107107
position = isNaN(+position) ? position : +position;

0 commit comments

Comments
 (0)