diff --git a/packages/studio/src/components/editor/domEditingLayers.ts b/packages/studio/src/components/editor/domEditingLayers.ts index 53bd536c65..178d72f50a 100644 --- a/packages/studio/src/components/editor/domEditingLayers.ts +++ b/packages/studio/src/components/editor/domEditingLayers.ts @@ -519,28 +519,13 @@ export function buildDomEditTextPatchOperation( value: string, childLocator?: DomEditChildLocator, ): PatchOperation { - return { - type: "text-content", - property: "text", - value, - ...childLocator, - }; + return { type: "text-content", property: "text", value, ...childLocator }; } -/** - * Replace an element's whole contents with markup, for a change no per-child - * operation can express — a text layer added, removed or reordered. - * - * The same operation an inline style edit uses, because it is the same thing: - * this element's children are now these. Both ends run the markup through the - * one sanitizer before it reaches a file. - */ +/** Replace an element's contents with markup, for a change no per-child operation + * can express (a text layer added, removed or reordered). Sanitized at both ends. */ export function buildDomEditRichTextPatchOperation(value: string): PatchOperation { - return { - type: "rich-text", - property: "", - value, - }; + return { type: "rich-text", property: "", value }; } // ─── Non-editable reason ───────────────────────────────────────────────────── diff --git a/packages/studio/src/hooks/timelineTimingSync.ts b/packages/studio/src/hooks/timelineTimingSync.ts index 5e8cd5997f..aac58e926f 100644 --- a/packages/studio/src/hooks/timelineTimingSync.ts +++ b/packages/studio/src/hooks/timelineTimingSync.ts @@ -59,9 +59,8 @@ async function rollbackOwnedMutation( `/api/projects/${encodeURIComponent(projectId)}/gsap-mutation-rollback/${encodeURIComponent(targetPath)}`, { method: "POST", - // Deliberately unclaimed. A rollback runs because a mutation did not - // converge, so the preview is on bytes nobody can vouch for; let the - // restored file reload it rather than suppressing that as our own write. + // Deliberately unclaimed: a rollback runs because a mutation did not + // converge, so let the restored file reload the preview. headers: { "Content-Type": "application/json" }, body: JSON.stringify({ expected, restore }), },