Skip to content

Commit

Permalink
🐛 Fix webhook deep keys parsing invalid index
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed May 12, 2023
1 parent 55dbb1a commit df8a406
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export const getDeepKeys = (obj: any): string[] => {
)
}
keys = keys.concat(
subkeys.map(function (subkey, idx) {
return `${key}[${idx}]${parseKey(subkey)}`
subkeys.map(function (subkey) {
return `${key}[0]${parseKey(subkey)}`
})
)
} else {
Expand Down

0 comments on commit df8a406

Please sign in to comment.