Skip to content

🎥 Make videos programmatically with React

don't accept "from" for series.sequence

Jonny Burgere0eb17a3f09d
diff --git a/packages/core/src/series/index.tsx b/packages/core/src/series/index.tsx
index c9d89eb7e4..beb75f5957 100644
--- a/packages/core/src/series/index.tsx
+++ b/packages/core/src/series/index.tsx
@@ -74,8 +74,9 @@ const Series: FC<{
const {
durationInFrames,
children: _children,
+ from,
...passedProps
- } = castedChild.props;
+ } = castedChild.props as SeriesSequenceProps & {from: never}; // `from` is not accepted and must be filtered out if used in JS
if (
i !== flattenedChildren.length - 1 ||