mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +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 }) {
|
function PaymentReceivesListProvider({ query, tableStateChanged, ...props }) {
|
||||||
// Fetch payment receives resource views and fields.
|
// Fetch payment receives resource views and fields.
|
||||||
const { data: paymentReceivesViews, isFetching: isViewsLoading } =
|
const { data: paymentReceivesViews, isLoading: isViewsLoading } =
|
||||||
useResourceViews('payment_receives');
|
useResourceViews('payment_receives');
|
||||||
|
|
||||||
// Fetch the payment receives resource fields.
|
// Fetch the payment receives resource fields.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
|
|
||||||
import 'style/pages/PaymentReceive/List.scss';
|
import 'style/pages/PaymentReceive/List.scss';
|
||||||
|
|
||||||
import { DashboardContentTable, DashboardPageContent } from 'components';
|
import { DashboardPageContent } from 'components';
|
||||||
import PaymentReceiveActionsBar from './PaymentReceiveActionsBar';
|
import PaymentReceiveActionsBar from './PaymentReceiveActionsBar';
|
||||||
import { PaymentReceivesListProvider } from './PaymentReceiptsListProvider';
|
import { PaymentReceivesListProvider } from './PaymentReceiptsListProvider';
|
||||||
import PaymentReceiveViewTabs from './PaymentReceiveViewTabs';
|
import PaymentReceiveViewTabs from './PaymentReceiveViewTabs';
|
||||||
|
|||||||
Reference in New Issue
Block a user