@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user