fix(PaymentReceive): depend on loading state instead fetching.

This commit is contained in:
a.bouhuolia
2022-01-11 18:10:17 +02:00
parent 1380e288e0
commit 79cb7f1a1d
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ const PaymentReceivesListContext = createContext();
*/
function PaymentReceivesListProvider({ query, tableStateChanged, ...props }) {
// Fetch payment receives resource views and fields.
const { data: paymentReceivesViews, isFetching: isViewsLoading } =
const { data: paymentReceivesViews, isLoading: isViewsLoading } =
useResourceViews('payment_receives');
// Fetch the payment receives resource fields.

View File

@@ -2,7 +2,7 @@ import React from 'react';
import 'style/pages/PaymentReceive/List.scss';
import { DashboardContentTable, DashboardPageContent } from 'components';
import { DashboardPageContent } from 'components';
import PaymentReceiveActionsBar from './PaymentReceiveActionsBar';
import { PaymentReceivesListProvider } from './PaymentReceiptsListProvider';
import PaymentReceiveViewTabs from './PaymentReceiveViewTabs';