IO-1567 Resolve refretch on export.

This commit is contained in:
Patrick Fic
2021-12-09 14:22:49 -08:00
parent 780d8b926d
commit cd191dae70
6 changed files with 20 additions and 14 deletions

View File

@@ -27,7 +27,9 @@ export function PaymentsExportAllButton({
completedCallback,
}) {
const { t } = useTranslation();
const [updatePayments] = useMutation(UPDATE_PAYMENTS);
const [updatePayments] = useMutation(UPDATE_PAYMENTS, {
refetchQueries: ["QUERY_PAYMENTS_FOR_EXPORT "],
});
const [loading, setLoading] = useState(false);
const [insertExportLog] = useMutation(INSERT_EXPORT_LOG);