Skip to content

🎥 Make videos programmatically with React

Update render-svg.tsx

Jonny Burgerf4fcb07c2ccb
diff --git a/packages/shapes/src/components/render-svg.tsx b/packages/shapes/src/components/render-svg.tsx
index 16dda81b01..7dc3c244d5 100644
--- a/packages/shapes/src/components/render-svg.tsx
+++ b/packages/shapes/src/components/render-svg.tsx
@@ -61,6 +61,10 @@ export const RenderSvg = ({
index === 0
? instructions[instructions.length - 1]
: instructions[index - 1];
+ if (prevInstruction.type === 'z') {
+ return null;
+ }
+
const prevX = prevInstruction.x;
const prevY = prevInstruction.y;
return (