🎥 Make videos programmatically with React
Update TimelineFieldRow.tsx
Jonny Burgerfe6c3bf64674
diff --git a/packages/studio/src/components/Timeline/TimelineFieldRow.tsx b/packages/studio/src/components/Timeline/TimelineFieldRow.tsxindex e653cfa294..b4ef1f2561 100644--- a/packages/studio/src/components/Timeline/TimelineFieldRow.tsx+++ b/packages/studio/src/components/Timeline/TimelineFieldRow.tsx@@ -213,10 +213,6 @@ export const TimelineFieldRow: React.FC<{);const codeValue = codeValuesForOverride?.[field.key] ?? null;- if (codeValue === null) {- throw new Error('Unexpectedly got null code value for field' + field.key);- }-const style = useMemo(() => {return {...fieldRowBase,@@ -225,6 +221,10 @@ export const TimelineFieldRow: React.FC<{};}, [field.rowHeight, paddingLeft]);+ if (codeValue === null) {+ return null;+ }+return (<div style={style}><Padder depth={nestedDepth + 1} />