fix(tabsContext.tsx): fix the order of arguments in the addFlow function call to correctly add flows to newProject
This commit is contained in:
parent
f0c64112ea
commit
fe6d0a78ed
1 changed files with 1 additions and 1 deletions
|
|
@ -300,7 +300,7 @@ export function TabsProvider({ children }: { children: ReactNode }) {
|
||||||
let fileData = JSON.parse(text);
|
let fileData = JSON.parse(text);
|
||||||
if (fileData.flows) {
|
if (fileData.flows) {
|
||||||
fileData.flows.forEach((flow: FlowType) => {
|
fileData.flows.forEach((flow: FlowType) => {
|
||||||
id = addFlow(flow, newProject);
|
id = addFlow(newProject, flow);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// parse the text into a JSON object
|
// parse the text into a JSON object
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue