Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
style: apply biome formatting to the probed-duration changes
超超超超超级喜欢你的达妮娅929aa7396492
diff --git a/src/components/ai-edition/NewEditorShell.probedDuration.test.tsx b/src/components/ai-edition/NewEditorShell.probedDuration.test.tsxindex ca1bf87a4..86cb96ed6 100644--- a/src/components/ai-edition/NewEditorShell.probedDuration.test.tsx+++ b/src/components/ai-edition/NewEditorShell.probedDuration.test.tsx@@ -126,6 +126,8 @@ describe("documentAfterProbedDuration", () => {it("writes nothing without a document or without assets", () => {expect(documentAfterProbedDuration(null, "asset_1", 30, PROJECT)).toBeNull();- expect(documentAfterProbedDuration(emptyTimeline("asset_1", []), "asset_1", 30, PROJECT)).toBeNull();+ expect(+ documentAfterProbedDuration(emptyTimeline("asset_1", []), "asset_1", 30, PROJECT),+ ).toBeNull();});});diff --git a/src/components/ai-edition/NewEditorShell.tsx b/src/components/ai-edition/NewEditorShell.tsxindex bc0010658..c5ab65028 100644--- a/src/components/ai-edition/NewEditorShell.tsx+++ b/src/components/ai-edition/NewEditorShell.tsx@@ -154,7 +154,9 @@ export function documentAfterProbedDuration(if (!primaryAssetId || primaryAssetId !== assetId) return null;const docWithDuration: AxcutDocument = {...doc,- assets: doc.assets.map((a) => (a.id === primaryAssetId ? { ...a, durationSec: knownSec } : a)),+ assets: doc.assets.map((a) =>+ a.id === primaryAssetId ? { ...a, durationSec: knownSec } : a,+ ),};return replaceTimelineOp(docWithDuration,@@ -497,7 +499,12 @@ export function NewEditorShell() {// from it lands after theirs and takes their edit with it.void enqueueTimelineWrite(async () => {const state = useProjectStore.getState();- const next = documentAfterProbedDuration(state.document, assetId, known, originatingProjectId);+ const next = documentAfterProbedDuration(+ state.document,+ assetId,+ known,+ originatingProjectId,+ );if (!next) return;// `history: false`: this is the probed duration being folded into the// document on load, not something the user did — an undo landing on it would