fix: remove duplicate/early refetch calls in BillModal sync flow
This commit is contained in:
parent
48f5577031
commit
52af533845
|
|
@ -1031,7 +1031,6 @@ export default function BillModal({ bill, initialBill, categories, onClose, onSa
|
||||||
if (result.added > 0) {
|
if (result.added > 0) {
|
||||||
toast.success(`${result.added} payment${result.added !== 1 ? 's' : ''} imported from bank history.`);
|
toast.success(`${result.added} payment${result.added !== 1 ? 's' : ''} imported from bank history.`);
|
||||||
loadLinkedTransactions?.();
|
loadLinkedTransactions?.();
|
||||||
refetch?.();
|
|
||||||
} else {
|
} else {
|
||||||
toast.info('No new matching transactions found.');
|
toast.info('No new matching transactions found.');
|
||||||
}
|
}
|
||||||
|
|
@ -1059,7 +1058,6 @@ export default function BillModal({ bill, initialBill, categories, onClose, onSa
|
||||||
billId={sourceBill?.id}
|
billId={sourceBill?.id}
|
||||||
onRulesChanged={() => {
|
onRulesChanged={() => {
|
||||||
setLocalHasRules(true);
|
setLocalHasRules(true);
|
||||||
refetch?.();
|
|
||||||
loadLinkedTransactions?.();
|
loadLinkedTransactions?.();
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue