From 35ca2da8c9c5a9c42e264fea35d403942175163c Mon Sep 17 00:00:00 2001 From: Diego Imbert Date: Sun, 6 Sep 2026 10:24:56 +0200 Subject: [PATCH] docs(drafts): trim the create-enabled comment and close the gap a removed method left Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01KcyBRxE8j3ujCYkum9KrC4 --- .../triggers/schedules/ScheduleEditorInner.svelte | 7 +++---- frontend/src/lib/userDraft.svelte.ts | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/lib/components/triggers/schedules/ScheduleEditorInner.svelte b/frontend/src/lib/components/triggers/schedules/ScheduleEditorInner.svelte index 938f14b78f..3898b817d2 100644 --- a/frontend/src/lib/components/triggers/schedules/ScheduleEditorInner.svelte +++ b/frontend/src/lib/components/triggers/schedules/ScheduleEditorInner.svelte @@ -626,10 +626,9 @@ const isSaved = await saveScheduleFromCfg(scheduleCfg, edit, wsId!) if (isSaved) { // A create deploys the schedule enabled whatever the form said (see - // saveScheduleFromCfg), so what counts as written records that — the - // baseline would otherwise claim a state the server does not have. The form - // follows only while it still holds what was sent; changed since, it is an - // edit of its own. + // saveScheduleFromCfg), so what counts as written records that — the baseline + // would otherwise claim a state the server does not have. The form follows + // only while it still holds what was sent; changed since, it is its own edit. if (wasCreate) { const sentEnabled = scheduleCfg.enabled scheduleCfg.enabled = true diff --git a/frontend/src/lib/userDraft.svelte.ts b/frontend/src/lib/userDraft.svelte.ts index d1a95fe86f..f64d6986ae 100644 --- a/frontend/src/lib/userDraft.svelte.ts +++ b/frontend/src/lib/userDraft.svelte.ts @@ -488,7 +488,6 @@ export const UserDraft = { noteMarker(draftOnlyDiscards, mapKey(resolveWorkspace(opts), itemKind, path)) }, - /** Whether the last discard for this cell removed the item outright (see * {@link recordDraftOnlyDiscard}), clearing the record. */ takeDraftOnlyDiscard(