mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 07:45:47 +00:00
refactor(FE-363): Rename response variable to purchasePerSupplier
This commit is contained in:
@@ -157,13 +157,15 @@ const PurchasesPerSupplierTab = () => {
|
|||||||
}, [updateFilter]);
|
}, [updateFilter]);
|
||||||
|
|
||||||
// ===== DATA FETCHING =====
|
// ===== DATA FETCHING =====
|
||||||
const { data: response, isLoading } = useSWR(
|
const { data: purchasePerSupplier, isLoading } = useSWR(
|
||||||
`${LogisticService.basePath}/purchase-supplier${getTableFilterQueryString()}`,
|
`${LogisticService.basePath}/purchase-supplier${getTableFilterQueryString()}`,
|
||||||
LogisticService.getAllFetcher
|
LogisticService.getAllFetcher
|
||||||
);
|
);
|
||||||
|
|
||||||
const data: LogisticPurchasePerSupplier[] = isResponseSuccess(response)
|
const data: LogisticPurchasePerSupplier[] = isResponseSuccess(
|
||||||
? (response?.data as unknown as LogisticPurchasePerSupplier[])
|
purchasePerSupplier
|
||||||
|
)
|
||||||
|
? (purchasePerSupplier?.data as unknown as LogisticPurchasePerSupplier[])
|
||||||
: [];
|
: [];
|
||||||
|
|
||||||
const getTableColumns = (
|
const getTableColumns = (
|
||||||
|
|||||||
Reference in New Issue
Block a user