From a29b0b56d9a616b193609b04c979ed1414ff08d9 Mon Sep 17 00:00:00 2001 From: Joao Ramos Date: Wed, 19 Jun 2024 21:39:27 +0100 Subject: [PATCH] Changed to the correct format for CSV --- src/pages/(admin)/Lists/UserList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/(admin)/Lists/UserList.tsx b/src/pages/(admin)/Lists/UserList.tsx index e71055c3..08d3a59c 100644 --- a/src/pages/(admin)/Lists/UserList.tsx +++ b/src/pages/(admin)/Lists/UserList.tsx @@ -502,9 +502,9 @@ export default function UserList({user, filters = []}: {user: User; filters?: (( const csv = exportListToExcel(filteredRows, users, groups); const element = document.createElement("a"); - const file = new Blob([csv], {type: "text/plain"}); + const file = new Blob([csv], {type: "text/csv"}); element.href = URL.createObjectURL(file); - element.download = "users.xlsx"; + element.download = "users.csv"; document.body.appendChild(element); element.click(); document.body.removeChild(element);