🎥 Make videos programmatically with React
handle style if layout is undefined
Jonny Burgerf2659a6ac9ea
diff --git a/packages/core/src/loop/index.tsx b/packages/core/src/loop/index.tsxindex 3ce14dc662..9301388074 100644--- a/packages/core/src/loop/index.tsx+++ b/packages/core/src/loop/index.tsx@@ -43,6 +43,7 @@ export const Loop: React.FC<LoopProps> = ({const maxTimes = Math.ceil(compDuration / durationInFrames);const actualTimes = Math.min(maxTimes, times);+ const style = props.layout === 'none' ? undefined : props.style;return (<>@@ -57,7 +58,7 @@ export const Loop: React.FC<LoopProps> = ({showLoopTimesInTimeline={actualTimes}showInTimeline={i === 0}layout={props.layout}- {...(props.layout === 'absolute-fill' && {style: props.style})}+ style={style}>{children}</Sequence>