IO-2368 Update Cache on QBD posting success
This commit is contained in:
@@ -150,6 +150,18 @@ export function PaymentExportButton({
|
||||
exportedat: new Date(),
|
||||
},
|
||||
},
|
||||
update(cache) {
|
||||
cache.modify({
|
||||
id: "ROOT_QUERY",
|
||||
fields: {
|
||||
payments(existingJobs = []) {
|
||||
return existingJobs.filter(
|
||||
(paymentRef) => paymentRef.__ref.includes(paymentId) === false
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
if (!!!paymentUpdateResponse.errors) {
|
||||
notification.open({
|
||||
|
||||
Reference in New Issue
Block a user