Skip to content

🎥 Make videos programmatically with React

fix bug in comp resolution

Jonny Burger22907a6cb673
diff --git a/packages/core/src/resolve-video-config.ts b/packages/core/src/resolve-video-config.ts
index 83ddc6daa5..7f3600b5cf 100644
--- a/packages/core/src/resolve-video-config.ts
+++ b/packages/core/src/resolve-video-config.ts
@@ -60,6 +60,14 @@ export const resolveVideoConfig = ({
calculated: calculatedProm,
composition,
});
+ if (calculatedProm === null) {
+ return {
+ ...data,
+ id: composition.id,
+ defaultProps: composition?.defaultProps ?? {},
+ };
+ }
+
return {
...data,
id: composition.id,