mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE): Refactor getDetailData to remove unused parameters
This commit is contained in:
@@ -203,11 +203,7 @@ const getDetailColumns = (): PdfColumn[] => [
|
||||
},
|
||||
];
|
||||
|
||||
const getDetailData = (
|
||||
rows: HppPerKandangRow[],
|
||||
allFeedSuppliers: string,
|
||||
allDocSuppliers: string
|
||||
): PdfTbodyCell[][] => {
|
||||
const getDetailData = (rows: HppPerKandangRow[]): PdfTbodyCell[][] => {
|
||||
return rows.map((item, index) => [
|
||||
{ key: 'no', value: index + 1 },
|
||||
{ key: 'kandang', value: item.kandang?.name || '-' },
|
||||
@@ -370,11 +366,7 @@ const createPDFDocument = (
|
||||
</PdfTypography>
|
||||
<PdfTable
|
||||
columns={getDetailColumns()}
|
||||
data={getDetailData(
|
||||
params.data.rows,
|
||||
allFeedSuppliers,
|
||||
allDocSuppliers
|
||||
)}
|
||||
data={getDetailData(params.data.rows)}
|
||||
footer={
|
||||
params.data.summary
|
||||
? getDetailFooter(
|
||||
|
||||
Reference in New Issue
Block a user