Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
cd2cd06ce8
commit
34bb098ef1
@@ -544,9 +544,11 @@ export function CollectionDetail({
|
||||
].join(",")),
|
||||
].join("\n");
|
||||
const blob = new Blob([rows], { type: "text/csv" });
|
||||
const name = promptFilename(`Statement_${ho?.last_name || "homeowner"}`, "csv");
|
||||
if (!name) return;
|
||||
const a = document.createElement("a");
|
||||
a.href = URL.createObjectURL(blob);
|
||||
a.download = `Statement_${ho?.last_name || "homeowner"}.csv`;
|
||||
a.download = `${name}.csv`;
|
||||
a.click();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user