Skip to content

Open source CapCut alternative.

TypeScript

fix(site): a filler span stays inside its cue [rebuild]

David Le354c7c7f37bf
diff --git a/site/src/cut/lib/aiTools.ts b/site/src/cut/lib/aiTools.ts
index 8c7c2376..8693d909 100644
--- a/site/src/cut/lib/aiTools.ts
+++ b/site/src/cut/lib/aiTools.ts
@@ -1171,7 +1171,8 @@ const toolRuns: Record<BrowserToolName, ToolRun> = {
const runsOn =
prev !== null &&
last !== undefined &&
- ((prev.cueId === w.cueId && prev.i === w.i - 1) || w.t0 - prev.t1 <= WORD_GAP);
+ prev.cueId === w.cueId &&
+ (prev.i === w.i - 1 || w.t0 - prev.t1 <= WORD_GAP);
if (last && runsOn) {
last.words.push(w.w);
last.t1 = w.t1;