diff --git a/packages/shared/src/general.ts b/packages/shared/src/general.ts index fb884695d33..33ca27dd881 100644 --- a/packages/shared/src/general.ts +++ b/packages/shared/src/general.ts @@ -135,7 +135,7 @@ export const hasChanged = (value: any, oldValue: any): boolean => export const invokeArrayFns = (fns: Function[], arg?: any) => { for (let i = 0; i < fns.length; i++) { - fns[i](arg) + arg === undefined ? fns[i]() : fns[i](arg) } }