fix(dispatcher): handlers without filters
This commit is contained in:
parent
e1dab9a195
commit
0633d0a817
1 changed files with 1 additions and 1 deletions
|
@ -996,7 +996,7 @@ export class Dispatcher<State = never, SceneName extends string = string> {
|
||||||
handler?: any,
|
handler?: any,
|
||||||
group?: number
|
group?: number
|
||||||
): void {
|
): void {
|
||||||
if (typeof handler === 'number') {
|
if (typeof handler === 'number' || typeof handler === 'undefined') {
|
||||||
this.addUpdateHandler(
|
this.addUpdateHandler(
|
||||||
{
|
{
|
||||||
name,
|
name,
|
||||||
|
|
Loading…
Reference in a new issue