From ddd480fb230e25c61de4891ae6b2d010afd1af57 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 21 Sep 2023 12:57:08 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(tabsContext.tsx):=20handle?= =?UTF-8?q?=20null=20or=20undefined=20flow.description=20to=20prevent=20po?= =?UTF-8?q?tential=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/contexts/tabsContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/contexts/tabsContext.tsx b/src/frontend/src/contexts/tabsContext.tsx index 7a901f8af..cda49cdc9 100644 --- a/src/frontend/src/contexts/tabsContext.tsx +++ b/src/frontend/src/contexts/tabsContext.tsx @@ -584,7 +584,7 @@ export function TabsProvider({ children }: { children: ReactNode }) { flowData: ReactFlowJsonObject | null, flow: FlowType ) => ({ - description: flow.description ?? getRandomDescription(), + description: flow?.description ?? getRandomDescription(), name: flow?.name ?? getRandomName(), data: flowData, id: "",