fix: Indent JSON output for exported flow data (#4750)
Indent JSON output for exported flow data in reactflowUtils.ts
This commit is contained in:
parent
4f27dbd918
commit
12407f00af
1 changed files with 9 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue