[ts][webcomponents] Fix empty loop param in animations.

This commit is contained in:
Davide Tantillo 2025-05-20 17:29:26 +02:00
parent 335d0ed17f
commit 5e6f4cae8d

View File

@ -146,7 +146,7 @@ function castToAnimationsInfo (value: string | null): AnimationsInfo | undefined
const animationInfoObject = obj[trackIndexStringOrLoopDefinition] ||= { animations: [] };
animationInfoObject.animations.push({
animationName: animationNameOrTrackIndexStringCycle,
loop: loopOrRepeatDelay.trim().toLowerCase() === "true",
loop: (loopOrRepeatDelay || "").trim().toLowerCase() === "true",
delay,
mixDuration,
});