mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-30 17:49:34 +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)
|
hook.list(params, path, value, ...args)
|
||||||
if (!Array.isArray(value)) return
|
if (!Array.isArray(value)) return
|
||||||
value.forEach((e, i) =>
|
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