🎥 Make videos programmatically with React
tighten ts
JonnyBurger6b3b6fb6ccd4
diff --git a/packages/studio-shared/src/schema-field-info.ts b/packages/studio-shared/src/schema-field-info.tsindex dc68d64a9d..c34b8dcf39 100644--- a/packages/studio-shared/src/schema-field-info.ts+++ b/packages/studio-shared/src/schema-field-info.ts@@ -44,13 +44,13 @@ export const getFieldsToShow = ({currentRuntimeValueDotNotation: Record<string, unknown>;getDragOverrides: GetDragOverrides;getCodeValues: GetCodeValues;- nodePath: SequenceNodePath | null;+ nodePath: SequenceNodePath;}): SchemaFieldInfo[] | null => {const valuesDotNotation = Internals.computeEffectiveSchemaValuesDotNotation({schema,currentValue: currentRuntimeValueDotNotation,- overrideValues: nodePath ? getDragOverrides(nodePath) : {},- propStatus: nodePath ? getCodeValues(nodePath) : undefined,+ overrideValues: getDragOverrides(nodePath),+ propStatus: getCodeValues(nodePath),});const activeSchema = Internals.flattenActiveSchema(diff --git a/packages/studio/src/components/Timeline/TimelineExpandedRow.tsx b/packages/studio/src/components/Timeline/TimelineExpandedRow.tsxindex 162cdffc3e..971e41a50f 100644--- a/packages/studio/src/components/Timeline/TimelineExpandedRow.tsx+++ b/packages/studio/src/components/Timeline/TimelineExpandedRow.tsx@@ -41,7 +41,7 @@ export const TimelineExpandedRow: React.FC<{readonly getIsExpanded: GetIsExpanded;readonly toggleTrack: (nodePathInfo: SequenceNodePathInfo) => void;readonly validatedLocation: CodePosition | null;- readonly nodePath: SequenceNodePath | null;+ readonly nodePath: SequenceNodePath;readonly schema: SequenceSchema;}> = ({node,diff --git a/packages/studio/src/components/Timeline/TimelineFieldRow.tsx b/packages/studio/src/components/Timeline/TimelineFieldRow.tsxindex 561b4e619b..0d05f8fe94 100644--- a/packages/studio/src/components/Timeline/TimelineFieldRow.tsx+++ b/packages/studio/src/components/Timeline/TimelineFieldRow.tsx@@ -35,7 +35,7 @@ export const TimelineFieldRow: React.FC<{readonly validatedLocation: CodePosition | null;readonly paddingLeft: number;readonly nestedDepth: number;- readonly nodePath: SequenceNodePath | null;+ readonly nodePath: SequenceNodePath;readonly schema: SequenceSchema;}> = ({field,@@ -52,8 +52,7 @@ export const TimelineFieldRow: React.FC<{Internals.VisualModeSettersContext,);- const codeValuesForOverride =- nodePath === null ? null : (getCodeValues(nodePath) ?? null);+ const codeValuesForOverride = getCodeValues(nodePath);const codeValue = codeValuesForOverride?.[field.key] ?? null;const dragOverrideValue = useMemo(() => {