Skip to content

Commit c6c75d4

Browse files
author
Oleksii Korshenko
authored
MAGETWO-81991: Checkout page could hang for Javascript error #10975
2 parents aa9109a + f96c5c1 commit c6c75d4

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)