Skip to content

🎥 Make videos programmatically with React

Update index.tsx

Jonny Burgerb75bf988c235
diff --git a/packages/core/src/series/index.tsx b/packages/core/src/series/index.tsx
index 861d6fd8c0..e1dccb62db 100644
--- a/packages/core/src/series/index.tsx
+++ b/packages/core/src/series/index.tsx
@@ -144,22 +144,14 @@ const Series: FC<{
children: _children,
from,
name,
- premountFor,
...passedProps
} = castedChild.props as SeriesPremountedSequenceProps & {from: never}; // `from` is not accepted and must be filtered out if used in JS
- if (passedProps.layout === 'none') {
- throw new Error(
- '`<Series.PremountedSequence>` does not support layout="none"',
- );
- }
-
return (
<PremountedSequence
name={name || '<Series.PremountedSeriesSequence>'}
from={currentStartFrame}
durationInFrames={durationInFramesProp}
- premountFor={premountFor}
{...passedProps}
ref={castedChild.ref}
>