From 57bd8bafac884938ae0b6b20a8d94265bfd9a67b Mon Sep 17 00:00:00 2001 From: sadnub Date: Sun, 29 Oct 2023 10:55:07 -0400 Subject: [PATCH] exported templates now are readable with spaces --- src/ee/reporting/api/reporting.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ee/reporting/api/reporting.ts b/src/ee/reporting/api/reporting.ts index 8704435d..a6b90d21 100644 --- a/src/ee/reporting/api/reporting.ts +++ b/src/ee/reporting/api/reporting.ts @@ -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));