2
0

🚑 (webhook) Remove get deep keys test sample

Closes #351
This commit is contained in:
Baptiste Arnaud
2023-03-02 16:57:17 +01:00
parent a1cf1e89e7
commit 9d96805d84

View File

@ -130,39 +130,7 @@ export const WebhookSettings = ({
if (error) if (error)
return showToast({ title: error.name, description: error.message }) return showToast({ title: error.name, description: error.message })
setTestResponse(JSON.stringify(data, undefined, 2)) setTestResponse(JSON.stringify(data, undefined, 2))
setResponseKeys( setResponseKeys(getDeepKeys(data))
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' },
],
},
],
})
)
setIsTestResponseLoading(false) setIsTestResponseLoading(false)
} }