fix: file name when lihat laporan
This commit is contained in:
@@ -267,6 +267,9 @@ const exportToPDF = (reportMeta: any, rawData: any, preview: boolean = false) =>
|
||||
})
|
||||
|
||||
if (preview) {
|
||||
doc.setProperties({
|
||||
title: `${reportName}`
|
||||
})
|
||||
window.open(doc.output('bloburl'))
|
||||
} else {
|
||||
doc.save(`Laporan ${reportName}.pdf`, { returnPromise: true }).then(() => {
|
||||
|
Reference in New Issue
Block a user