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 PayableExportButton({
setSelectedBills,
}) {
const { t } = useTranslation();
const [updateBill] = useMutation(UPDATE_BILLS);
const [updateBill] = useMutation(UPDATE_BILLS, {
refetchQueries: ["QUERY_BILLS_FOR_EXPORT "],
});
const [loading, setLoading] = useState(false);
const [insertExportLog] = useMutation(INSERT_EXPORT_LOG);