Skip to content

Commit

Permalink
exported templates now are readable with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sadnub committed Oct 29, 2023
1 parent 7d5216a commit 57bd8ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ee/reporting/api/reporting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,10 @@ export function useReportTemplates(): useReportingTemplates {
axios
.post(`${baseUrl}/templates/${id}/export/`)
.then(({ data }) => {
exportFile(`${data.template.name}-export.json`, JSON.stringify(data));
exportFile(
`${data.template.name}-export.json`,
JSON.stringify(data, null, 2),
);
})
.catch(() => (isError.value = true))
.finally(() => (isLoading.value = false));
Expand Down

0 comments on commit 57bd8ba

Please sign in to comment.