🎥 Make videos programmatically with React
run prettier over series index
Jonny Burgercf45fbba878f
diff --git a/packages/core/src/series/index.tsx b/packages/core/src/series/index.tsxindex 34ebd5b223..33fba76ee3 100644--- a/packages/core/src/series/index.tsx+++ b/packages/core/src/series/index.tsx@@ -36,7 +36,7 @@ const Series: FC<{} = ({children}) => {const childrenValue = useMemo(() => {let startFrame = 0;- const flattenedChildren = flattenChildren(children)+ const flattenedChildren = flattenChildren(children);return Children.map(flattenedChildren, (child, i) => {const castedChild = child as unknown as| {@@ -64,7 +64,7 @@ const Series: FC<{const debugInfo = `index = ${i}, duration = ${castedChild.props.durationInFrames}`;- if (!castedChild || !castedChild.props.children) {+ if (!castedChild?.props.children) {throw new TypeError(`A <Series.Sequence /> component (${debugInfo}) was detected to not have any children. Delete it to fix this error.`);@@ -77,7 +77,10 @@ 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`