fix(ci): drop the unused catalog refresh index

This commit is contained in:
Adam Moussa 2026-09-25 17:20:11 -04:00
parent f076b91aff
commit 3179ef848b
No known key found for this signature in database

View file

@ -156,7 +156,7 @@ function invoiceDateBeforeDue(dueDate: string, index: number): string {
}
/** Keep catalog-derived fields in sync after mock mutations. */
function withRefreshedCatalogFields(invoice: MockInvoice, index: number): MockInvoice {
function withRefreshedCatalogFields(invoice: MockInvoice): MockInvoice {
return {
...invoice,
actionLabel: actionLabelForStatus(invoice.status),
@ -190,7 +190,6 @@ function enrichInvoice(core: MockInvoiceCore, index: number): MockInvoice {
relatedInvoice: null,
rowCount: core.lines.length,
},
index,
);
}
@ -596,7 +595,6 @@ export function updateMockInvoicePayDate(id: string, payDate: string | null): Mo
},
],
},
index,
),
);
}
@ -609,7 +607,7 @@ export function updateMockInvoiceHeader(id: string, patch: MockInvoiceHeaderPatc
return replaceInvoice(
index,
withRefreshedCatalogFields({ ...invoiceStore[index], ...patch }, index),
withRefreshedCatalogFields({ ...invoiceStore[index], ...patch }),
);
}
@ -626,7 +624,6 @@ export function updateMockInvoiceLines(id: string, lines: MockInvoiceLine[]): Mo
...invoiceStore[index],
lines: lines.map((line) => ({ ...line })),
},
index,
),
);
}
@ -659,7 +656,6 @@ export function addMockInvoiceComment(
...current,
comments: [...current.comments, nextComment],
},
index,
),
);
}
@ -694,7 +690,6 @@ export function transitionMockInvoiceStatus(
status,
activity: [...current.activity, nextActivity],
},
index,
),
);