fix(PaymentMadeForm|PaymentReceiveForm): keep previous data of due invoices.

This commit is contained in:
a.bouhuolia
2022-03-20 20:54:07 +02:00
parent 120f8d15ec
commit a093c0d335
2 changed files with 2 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ function PaymentMadeInnerProvider({ ...props }) {
isFetching: isNewEntriesFetching,
} = usePaymentMadeNewPageEntries(vendorId, {
enabled: !!vendorId && isNewMode,
keepPreviousData: true,
});
useEffect(() => {

View File

@@ -26,6 +26,7 @@ function PaymentReceiveInnerProvider({ ...props }) {
isFetching: isDueInvoicesFetching,
} = useDueInvoices(customerId, {
enabled: !!customerId && isNewMode,
keepPreviousData: true,
});
useEffect(() => {