mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 21:41:57 +00:00
refactor(FE-363): Rename SupplierWithItems type for clarity
This commit is contained in:
@@ -15,7 +15,7 @@ import Table from '@/components/Table';
|
||||
import { ColumnDef } from '@tanstack/react-table';
|
||||
import { formatCurrency, formatDate } from '@/lib/helper';
|
||||
import {
|
||||
SupplierWithItems,
|
||||
LogisticPurchasePerSupplier,
|
||||
LogisticPurchasePerSupplierItems,
|
||||
} from '@/types/api/report/logistic-stock';
|
||||
import { isResponseSuccess } from '@/lib/api-helper';
|
||||
@@ -149,8 +149,8 @@ const PurchasesPerSupplierTab = () => {
|
||||
LogisticService.getAllFetcher
|
||||
);
|
||||
|
||||
const data: SupplierWithItems[] = isResponseSuccess(response)
|
||||
? (response?.data as unknown as SupplierWithItems[])
|
||||
const data: LogisticPurchasePerSupplier[] = isResponseSuccess(response)
|
||||
? (response?.data as unknown as LogisticPurchasePerSupplier[])
|
||||
: [];
|
||||
|
||||
const getTableColumns = (
|
||||
|
||||
Reference in New Issue
Block a user