From 1d0aab71f91e82bba77f73669828aae403f66d00 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Mon, 16 Oct 2023 14:33:13 +0200 Subject: [PATCH] :bug: (webhook) Fix webhook response data key number parsing --- .../blocks/integrations/webhook/helpers/getDeepKeys.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/builder/src/features/blocks/integrations/webhook/helpers/getDeepKeys.ts b/apps/builder/src/features/blocks/integrations/webhook/helpers/getDeepKeys.ts index 9f30051b8..d1610aa79 100644 --- a/apps/builder/src/features/blocks/integrations/webhook/helpers/getDeepKeys.ts +++ b/apps/builder/src/features/blocks/integrations/webhook/helpers/getDeepKeys.ts @@ -42,7 +42,9 @@ export const getDeepKeys = (obj: any): string[] => { const parseKey = (key: string) => { if ( - (key.includes(' ') || key.includes('-')) && + (key.includes(' ') || + key.includes('-') || + !isNaN(key as unknown as number)) && !key.includes('.flatMap(item => item') && !key.includes("['") && !key.includes("']")