From fe6d0a78edb0083d199f720194b476233776e324 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Wed, 11 Oct 2023 16:50:56 -0300 Subject: [PATCH] fix(tabsContext.tsx): fix the order of arguments in the addFlow function call to correctly add flows to newProject --- 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 79b39ad60..620894594 100644 --- a/src/frontend/src/contexts/tabsContext.tsx +++ b/src/frontend/src/contexts/tabsContext.tsx @@ -300,7 +300,7 @@ export function TabsProvider({ children }: { children: ReactNode }) { let fileData = JSON.parse(text); if (fileData.flows) { fileData.flows.forEach((flow: FlowType) => { - id = addFlow(flow, newProject); + id = addFlow(newProject, flow); }); } // parse the text into a JSON object