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:
@ -64,15 +64,20 @@ export function SettingsWorkspaceMembers() {
|
||||
return;
|
||||
}
|
||||
|
||||
const normalizedId = cache.identify({
|
||||
id: responseData.deleteWorkspaceMember.id,
|
||||
__typename: 'WorkspaceMember',
|
||||
cache.evict({
|
||||
id: cache.identify({
|
||||
id: responseData.deleteWorkspaceMember.id,
|
||||
__typename: 'WorkspaceMember',
|
||||
}),
|
||||
});
|
||||
|
||||
// Evict object from cache
|
||||
cache.evict({ id: normalizedId });
|
||||
cache.evict({
|
||||
id: cache.identify({
|
||||
id: userId,
|
||||
__typename: 'User',
|
||||
}),
|
||||
});
|
||||
|
||||
// Clean up relation to this object
|
||||
cache.gc();
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user