Skip to content

Commit 535ec9b

Browse files
author
e.bondarev
committed
Fix getMin for support IE
1 parent ee87c3f commit 535ec9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ const error = prop => {
4949
const getMin = cols => {
5050
let min = cols[0];
5151

52-
for (let col of cols) {
53-
if (col.height < min.height) min = col;
52+
for (let i = 0; i < cols.length; i++) {
53+
if (cols[i].height < min.height) min = col;
5454
}
5555

5656
return min;

0 commit comments

Comments
 (0)