From 8981a572ed3b713e407a0c2a3314b10d4dd91d1d Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Sat, 9 Apr 2022 16:57:32 -0500 Subject: [PATCH] =?UTF-8?q?fix(engine):=20=F0=9F=90=9B=20Linked=20typebot?= =?UTF-8?q?=20webhook?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/bot-engine/src/contexts/TypebotContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bot-engine/src/contexts/TypebotContext.tsx b/packages/bot-engine/src/contexts/TypebotContext.tsx index 8d06b2a047..e5dd8c1457 100644 --- a/packages/bot-engine/src/contexts/TypebotContext.tsx +++ b/packages/bot-engine/src/contexts/TypebotContext.tsx @@ -71,7 +71,7 @@ export const TypebotContext = ({ const injectLinkedTypebot = (typebot: Typebot | PublicTypebot) => { const typebotToInject = { - id: typebot.id, + id: 'typebotId' in typebot ? typebot.typebotId : typebot.id, blocks: typebot.blocks, edges: typebot.edges, variables: typebot.variables,