Skip to content

Commit 3af91c0

Browse files
committed
fix: treat null "from" and "to" the same as undefined
1 parent f1495e5 commit 3af91c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/SpringValue.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,8 @@ export class SpringValue<T = any> extends AnimationValue<T> {
638638

639639
/** @internal Create an `Animated` node from a set of `to` and `from` props */
640640
createNode({ to, from }: AnimationRange<T>) {
641-
const value = is.und(from) ? to : from
642-
if (!is.und(value)) {
641+
const value = from != null ? from : to
642+
if (value != null) {
643643
return this._getNodeType(value).create(computeGoal(value))
644644
}
645645
}

0 commit comments

Comments
 (0)