Skip to content

Commit

Permalink
Indent JSON output for exported flow data in reactflowUtils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielluiz committed Nov 21, 2024
1 parent 3e57340 commit f51d472
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/frontend/src/utils/reactflowUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1562,11 +1562,15 @@ export function downloadFlow(
removeFileNameFromComponents(clonedFlow);
// create a data URI with the current flow data
const jsonString = `data:text/json;chatset=utf-8,${encodeURIComponent(
JSON.stringify({
...clonedFlow,
name: flowName,
description: flowDescription,
}),
JSON.stringify(
{
...clonedFlow,
name: flowName,
description: flowDescription,
},
null,
2,
),
)}`;

// create a link element and set its properties
Expand Down

0 comments on commit f51d472

Please # to comment.