Skip to content

🎥 Make videos programmatically with React

Prevent zero-duration sequences from rendering in Studio Activity

JonnyBurger72ba90a7139e
diff --git a/packages/core/src/Sequence.tsx b/packages/core/src/Sequence.tsx
index bb4f5a0012..7c3bb0d58e 100644
--- a/packages/core/src/Sequence.tsx
+++ b/packages/core/src/Sequence.tsx
@@ -839,7 +839,12 @@ const RegularSequenceRefForwardingFunction: React.ForwardRefRenderFunction<
}
: null,
);
- const renderActivity = activityEnabled && (!activityDormant || admitted);
+ // Admission reflects the previous commit. A timing edit can trim an admitted
+ // sequence to zero before the activity budget publishes its next selection.
+ const renderActivity =
+ activityEnabled &&
+ actualDurationInFrames > 0 &&
+ (!activityDormant || admitted);
const content = (activityEnabled ? renderActivity : contentVisible)
? children
: null;