mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
fix(PaymentReceive): depend on loading state instead fetching.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user