Skip to content

Commit

Permalink
🚑 (webhook) Remove get deep keys test sample
Browse files Browse the repository at this point in the history
Closes #351
  • Loading branch information
baptisteArno committed Mar 2, 2023
1 parent a1cf1e8 commit 9d96805
Showing 1 changed file with 1 addition and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,39 +130,7 @@ export const WebhookSettings = ({
if (error)
return showToast({ title: error.name, description: error.message })
setTestResponse(JSON.stringify(data, undefined, 2))
setResponseKeys(
getDeepKeys({
employees: [
{
name: 'Shyam',
email: 'shyamjaiswal@gmail.com',
employees: [
{ name: 'Shyam', email: 'shyamjaiswal@gmail.com' },
{ name: 'Bob', email: 'bob32@gmail.com' },
{ name: 'Jai', email: 'jai87@gmail.com' },
],
},
{
name: 'Bob',
email: 'bob32@gmail.com',
employees: [
{ name: 'Shyam', email: 'shyamjaiswal@gmail.com' },
{ name: 'Bob', email: 'bob32@gmail.com' },
{ name: 'Jai', email: 'jai87@gmail.com' },
],
},
{
name: 'Jai',
email: 'jai87@gmail.com',
employees: [
{ name: 'Shyam', email: 'shyamjaiswal@gmail.com' },
{ name: 'Bob', email: 'bob32@gmail.com' },
{ name: 'Jai', email: 'jai87@gmail.com' },
],
},
],
})
)
setResponseKeys(getDeepKeys(data))
setIsTestResponseLoading(false)
}

Expand Down

0 comments on commit 9d96805

Please sign in to comment.