added new export type and fileName fix on download (#20641)

This commit is contained in:
Ashish Gupta 2025-04-04 19:08:27 +05:30 committed by GitHub
parent 3503adb590
commit 5855ce5eaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -121,7 +121,10 @@ export const EntityExportModalProvider = ({
if (exportType !== ExportTypes.CSV) { if (exportType !== ExportTypes.CSV) {
await exportUtilClassBase.exportMethodBasedOnType({ await exportUtilClassBase.exportMethodBasedOnType({
exportType, exportType,
exportData, exportData: {
...exportData,
name: fileName,
},
}); });
handleCancel(); handleCancel();

View File

@ -13,4 +13,5 @@
export enum ExportTypes { export enum ExportTypes {
CSV = 'CSV', CSV = 'CSV',
PNG = 'PNG', PNG = 'PNG',
PDF = 'PDF',
} }