Skip to content

🎥 Make videos programmatically with React

little simplification

JonnyBurger38c414c76759
diff --git a/packages/core/src/SequenceManager.tsx b/packages/core/src/SequenceManager.tsx
index a46381a680..807f5661f1 100644
--- a/packages/core/src/SequenceManager.tsx
+++ b/packages/core/src/SequenceManager.tsx
@@ -91,7 +91,6 @@ export type CanUpdateEffectPropsResponseTrue = {
export type CanUpdateEffectPropsResponseFalse = {
canUpdate: false;
effectIndex: number;
- factoryName: string;
reason:
| 'effect-reordered'
| 'no-args-object'
diff --git a/packages/studio-server/src/codemods/update-effect-props/update-effect-props.ts b/packages/studio-server/src/codemods/update-effect-props/update-effect-props.ts
index 32541f4b14..a90c130c9a 100644
--- a/packages/studio-server/src/codemods/update-effect-props/update-effect-props.ts
+++ b/packages/studio-server/src/codemods/update-effect-props/update-effect-props.ts
@@ -145,8 +145,7 @@ export const findEffectCallExpression = ({
return {kind: 'error', reason: 'not-call-expression'};
}
- const arr = expr as ArrayExpression;
- const elements = enumerateEffectArrayElements(arr);
+ const elements = enumerateEffectArrayElements(expr);
if (effectIndex < 0 || effectIndex >= elements.length) {
return {kind: 'error', reason: 'not-found'};
diff --git a/packages/studio-server/src/preview-server/routes/can-update-effect-props.ts b/packages/studio-server/src/preview-server/routes/can-update-effect-props.ts
index 0ea968c1fd..87efc321ab 100644
--- a/packages/studio-server/src/preview-server/routes/can-update-effect-props.ts
+++ b/packages/studio-server/src/preview-server/routes/can-update-effect-props.ts
@@ -113,7 +113,6 @@ export const computeEffectPropStatus = ({
return {
canUpdate: false,
effectIndex: subscription.effectIndex,
- factoryName: subscription.factoryName,
reason: 'not-found',
};
}
@@ -125,7 +124,6 @@ export const computeEffectPropStatus = ({
return {
canUpdate: false,
effectIndex: subscription.effectIndex,
- factoryName: subscription.factoryName,
reason: 'not-found',
};
}
@@ -135,7 +133,6 @@ export const computeEffectPropStatus = ({
return {
canUpdate: false,
effectIndex: subscription.effectIndex,
- factoryName: subscription.factoryName,
reason: 'not-call-expression',
};
}
@@ -144,7 +141,6 @@ export const computeEffectPropStatus = ({
return {
canUpdate: false,
effectIndex: subscription.effectIndex,
- factoryName: subscription.factoryName,
reason: 'effect-reordered',
};
}
@@ -169,7 +165,6 @@ export const computeEffectPropStatus = ({
return {
canUpdate: false,
effectIndex: subscription.effectIndex,
- factoryName: subscription.factoryName,
reason: 'no-args-object',
};
}
diff --git a/packages/studio-shared/src/test/optimistic-update-for-effect-code-values.test.ts b/packages/studio-shared/src/test/optimistic-update-for-effect-code-values.test.ts
index 4f3d0ff9fd..31a47b3351 100644
--- a/packages/studio-shared/src/test/optimistic-update-for-effect-code-values.test.ts
+++ b/packages/studio-shared/src/test/optimistic-update-for-effect-code-values.test.ts
@@ -83,7 +83,6 @@ test('optimisticUpdateForEffectCodeValues is a no-op when effect status is non-u
{
canUpdate: false,
effectIndex: 0,
- factoryName: 'tint',
reason: 'effect-reordered',
},
],