fix(editor): Task 7 round 1, reveal reset, forced-colors ring

This commit is contained in:
bchanot committed 2026-11-14 14:28:20 +01:00
1 parent 085c56877c
commit 4018344ffc
5 files changed
+37 -5

No files matched your search

+1 -1
View File
@@ -83,7 +83,7 @@ export function stepHistory(
if (!replaced.ok) return replaced
const patch = replacedPatch(state, step.text, replaced.state, step.history)
const key = appearedFinding(state.documentText, step.text)
api.set(key ? { ...patch, revealed: { key } } : patch)
api.set({ ...patch, revealed: key ? { key } : null })
return { ok: true }
}