fix: export module in daftar gangguan melapor lebih dari 1 kali
This commit is contained in:
		| @@ -277,7 +277,7 @@ const exportToDOCX = (reportMeta: any, data: any) => { | ||||
|     return data.value.map((item: any, i: any) => { | ||||
|       return new TableRow({ | ||||
|         children: [ | ||||
|           { text: `${++i}`, field: 'no_laporan' }, | ||||
|           { text: `${++i}`, field: 'no' }, | ||||
|           { text: item.no_laporan, field: 'no_laporan' }, | ||||
|           { text: item.pembuat_laporan, field: 'pembuat_laporan' }, | ||||
|           { text: item.waktu_lapor, field: 'waktu_lapor' }, | ||||
| @@ -517,7 +517,6 @@ const exportToDOCX = (reportMeta: any, data: any) => { | ||||
|   }) | ||||
|  | ||||
|   Packer.toBlob(doc).then((blob) => { | ||||
|     console.log(blob) | ||||
|     saveAs(blob, `Laporan ${reportName}.docx`) | ||||
|     console.log('Document created successfully') | ||||
|   }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user