Skip to content

🎥 Make videos programmatically with React

Speed up nonnumeric bulk property edits

Jonny Burger33cb57de99e4
diff --git a/packages/codemods/src/update-sequence-props.ts b/packages/codemods/src/update-sequence-props.ts
index 8720f274d1..fb56cffa10 100644
--- a/packages/codemods/src/update-sequence-props.ts
+++ b/packages/codemods/src/update-sequence-props.ts
@@ -1486,10 +1486,13 @@ export const updateMultipleSequenceProps = ({
jsxElement,
updates,
schema,
- videoConfigValues: getVideoConfigIdentifierValues({
- ast,
- videoConfigValues,
- }),
+ // Only numeric updates without clipboard expressions use these bindings.
+ videoConfigValues: updates.some(
+ ({value, clipboardParam}) =>
+ typeof value === 'number' && !clipboardParam,
+ )
+ ? getVideoConfigIdentifierValues({ast, videoConfigValues})
+ : new Map(),
clipboardParamLocalNames,
}),
};