Skip to content

🎥 Make videos programmatically with React

fields refactor

Jonny Burger7d87569a0d3f
diff --git a/packages/studio/src/components/Timeline/TimelineSchemaField.tsx b/packages/studio/src/components/Timeline/TimelineSchemaField.tsx
index 37ece298e2..e1024cd007 100644
--- a/packages/studio/src/components/Timeline/TimelineSchemaField.tsx
+++ b/packages/studio/src/components/Timeline/TimelineSchemaField.tsx
@@ -47,12 +47,18 @@ export const TimelineFieldValue: React.FC<{
}
if (propStatus !== null && !propStatus.canUpdate) {
- return <span style={unsupportedLabel}>{propStatus.reason}</span>;
+ if (propStatus.reason === 'computed') {
+ return <span style={unsupportedLabel}>computed</span>;
+ }
+
+ throw new Error(
+ `Unsupported prop status: ${propStatus.reason satisfies never}`,
+ );
}
if (propStatus === null) {
return (
- <span style={{...notEditableBackground}}>
+ <span style={notEditableBackground}>
<span style={unsupportedLabel}>error</span>
</span>
);