Fix person deletion not reflected on Opportunities POC (#1387)

* Fix person deletion not reflected on Opportunities POC

* Fix companies, user deletion
This commit is contained in:
Charles Bochet
2023-08-31 15:06:17 +02:00
committed by GitHub
parent ec23ca3d12
commit 2d5cb9c750
3 changed files with 18 additions and 12 deletions

View File

@ -38,14 +38,11 @@ export function useDeleteSelectedComapnies() {
tableRowIds.filter((id) => !rowIdsToDelete.includes(id)),
);
// Manually update the cache to match the mutations
rowIdsToDelete.forEach((companyId) => {
cache.evict({
id: cache.identify({
__typename: 'Company',
id: companyId,
}),
id: cache.identify({ __typename: 'Company', id: companyId }),
});
cache.gc();
});
},
});