Fix bug in walk hook

This commit is contained in:
Misode
2020-12-29 02:15:36 +01:00
parent 1a568be1e6
commit f0a8d2fb20

View File

@@ -14,7 +14,7 @@ export const walk = <U extends Args> (hook: Hook<[any, ...U], void>): Hook<[any,
hook.list(params, path, value, ...args)
if (!Array.isArray(value)) return
value.forEach((e, i) =>
params.children.hook(this, path.push(i), value, ...args)
params.children.hook(this, path.push(i), e, ...args)
)
},