mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 23:27:09 +00:00
Fix bug in walk hook
This commit is contained in:
@@ -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)
|
||||
)
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user