Delete button in right drawer / side pannel (#7200)
fixes #7069 @Bonapara https://github.com/user-attachments/assets/b1b57070-1ef4-4cc3-9907-028219245558 --------- Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
@ -93,6 +93,11 @@ export const triggerDeleteRecordsOptimisticEffect = ({
|
||||
objectMetadataItems,
|
||||
});
|
||||
|
||||
cache.evict({ id: cache.identify(recordToDelete) });
|
||||
cache.modify({
|
||||
id: cache.identify(recordToDelete),
|
||||
fields: {
|
||||
deletedAt: () => recordToDelete.deletedAt,
|
||||
},
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user