fix(editor): Task 7 round 1, reveal reset, forced-colors ring
This commit is contained in:
1 parent
085c56877c
commit
4018344ffc
5 files changed
+37
-5
No files matched your search
@@ -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 }
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user