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:
nitin
2024-10-02 23:52:55 +05:30
committed by GitHub
parent 098d43d460
commit 83e43366bb
9 changed files with 130 additions and 42 deletions

View File

@ -93,6 +93,11 @@ export const triggerDeleteRecordsOptimisticEffect = ({
objectMetadataItems,
});
cache.evict({ id: cache.identify(recordToDelete) });
cache.modify({
id: cache.identify(recordToDelete),
fields: {
deletedAt: () => recordToDelete.deletedAt,
},
});
});
};