From 4ed6f07a159cb620fd0d7518724ddb25edfded74 Mon Sep 17 00:00:00 2001 From: Nastya Date: Mon, 15 Apr 2024 14:44:48 +0300 Subject: [PATCH] =?UTF-8?q?=D1=8D=D0=BA=D1=81=D0=BF=D0=BE=D1=80=D1=82=20?= =?UTF-8?q?=D0=BA=D0=B0=D1=87=D0=B0=D0=B5=D1=82=20=D1=84=D0=B0=D0=B9=D0=BB?= =?UTF-8?q?=D0=B8=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/results/actions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stores/results/actions.ts b/src/stores/results/actions.ts index 5887be21..d4f20314 100644 --- a/src/stores/results/actions.ts +++ b/src/stores/results/actions.ts @@ -97,7 +97,8 @@ export const ExportResults = async ( parseFilters(filterNew, filterDate), ); - const blob = data; + const blob = new Blob([data as BlobPart], { type: "application/json" }); + const link = document.createElement("a"); link.href = window.URL.createObjectURL(blob as Blob); link.download = `report_${new Date().getTime()}.xlsx`;