fix(tabsContext.tsx): fix the order of arguments in the addFlow function call to correctly add flows to newProject

This commit is contained in:
anovazzi1 2023-10-11 16:50:56 -03:00
commit fe6d0a78ed

View file

@ -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