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