Skip to content

🎥 Make videos programmatically with React

Fix lint

Ravi Jain84e813bb9489
diff --git a/packages/core/src/series/index.tsx b/packages/core/src/series/index.tsx
index 55c3ac47f0..a92aff06f5 100644
--- a/packages/core/src/series/index.tsx
+++ b/packages/core/src/series/index.tsx
@@ -32,7 +32,7 @@ const Series: FC<{
} = ({children}) => {
const childrenValue = useMemo(() => {
let startFrame = 0;
- let flattenedChildren = flattenChildren(children)
+ const flattenedChildren = flattenChildren(children)
return Children.map(flattenedChildren, (child, i) => {
const castedChild = child as unknown as
| {
@@ -73,12 +73,13 @@ const Series: FC<{
...passedProps
} = castedChild.props;
- if (i != flattenedChildren.length-1 || durationInFramesProp != Infinity) {
+ if (i !== flattenedChildren.length-1 || durationInFramesProp !== Infinity) {
validateDurationInFrames(
durationInFramesProp,
`of a <Series.Sequence /> component`
);
}
+
const offset = castedChild.props.offset ?? 0;
if (Number.isNaN(offset)) {
throw new TypeError(