Skip to content

🎥 Make videos programmatically with React

Skip timing binding resolution when no candidates exist

Jonny Burger79e4f7571996
diff --git a/packages/studio-server/src/helpers/video-config-values.ts b/packages/studio-server/src/helpers/video-config-values.ts
index 1d6db1d83e..8d97ebb7f8 100644
--- a/packages/studio-server/src/helpers/video-config-values.ts
+++ b/packages/studio-server/src/helpers/video-config-values.ts
@@ -75,6 +75,10 @@ export const getVideoConfigIdentifiers = ({
},
});
+ if (candidates.size === 0) {
+ return candidates;
+ }
+
// Resolve each reference to its declaration. Components may independently
// declare the same name, while parameters and other shadowing stay computed.
const bindings = new Map<Identifier, VideoConfigNumericBinding>();