fix(dispatcher): wrong .merge call in wizard

This commit is contained in:
alina 🌸 2024-10-11 23:54:52 +03:00
parent 5964f69112
commit 9a38658bec
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -66,7 +66,7 @@ export class WizardScene<State extends object> extends Dispatcher<State & Wizard
if (step >= this._steps) { if (step >= this._steps) {
await state.exit() await state.exit()
} else { } else {
await state.merge({ $step: step }, this._defaultState) await state.merge({ $step: step }, { fallback: this._defaultState })
} }
} }