Fix CSV encoding issue

Co-authored-by: Benjamin Mayanja <vibenjamin6@gmail.com>
This commit is contained in:
gitstart 2023-06-06 15:18:15 +00:00
parent f9f51f9ecf
commit 05851f6b19
1 changed files with 4 additions and 1 deletions

View File

@ -130,7 +130,10 @@
notifications.error("Export Failed")
}
if (response) {
download(response, `export.${exportFormat}`)
download(
new Blob([response], { type: "text/plain" }),
`export.${exportFormat}`
)
notifications.success("Export Successful")
}
} else {