mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
Merge remote-tracking branch 'origin/accounts_fix'
This commit is contained in:
@@ -70,8 +70,10 @@ function ExchangeRateDialog({
|
||||
[],
|
||||
);
|
||||
|
||||
const fetchExchangeRatesDialog = useQuery('exchange-rates-dialog', () =>
|
||||
requestFetchExchangeRates(),
|
||||
const fetchExchangeRatesDialog = useQuery(
|
||||
'exchange-rates-dialog',
|
||||
() => requestFetchExchangeRates(),
|
||||
{ manual: true },
|
||||
);
|
||||
|
||||
const {
|
||||
@@ -102,7 +104,7 @@ function ExchangeRateDialog({
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
setSubmitting(false);
|
||||
queryCache.removeQueries('exchange-rates-dialog', { force: true });
|
||||
queryCache.invalidateQueries('exchange-rates-dialog');
|
||||
})
|
||||
.catch((error) => {
|
||||
setSubmitting(false);
|
||||
@@ -118,7 +120,7 @@ function ExchangeRateDialog({
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
setSubmitting(false);
|
||||
queryCache.refetchQueries('exchange-rates-table', { force: true });
|
||||
queryCache.invalidateQueries('exchange-rates-table');
|
||||
})
|
||||
.catch((errors) => {
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user