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

@@ -28,7 +28,9 @@ export function PaymentExportButton({
setSelectedPayments,
}) {
const { t } = useTranslation();
const [updatePayment] = useMutation(UPDATE_PAYMENTS);
const [updatePayment] = useMutation(UPDATE_PAYMENTS, {
refetchQueries: ["QUERY_PAYMENTS_FOR_EXPORT "],
});
const [loading, setLoading] = useState(false);
const [insertExportLog] = useMutation(INSERT_EXPORT_LOG);