Skip to content

Commit 0b71731

Browse files
committed
close #295, fix sequences
1 parent 438e613 commit 0b71731

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/moti/src/core/use-motify.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ const getSequenceArray = (
244244

245245
const sequence: any[] = []
246246

247-
sequenceArray.forEach((step) => {
247+
for (const step of sequenceArray) {
248248
const shouldPush =
249249
typeof step === 'object'
250250
? step && step?.value != null && step?.value !== false
@@ -302,7 +302,7 @@ const getSequenceArray = (
302302
sequence.push(sequenceValue)
303303
}
304304
}
305-
})
305+
}
306306

307307
return sequence
308308
}

0 commit comments

Comments
 (0)