Fix favorites (#3138)
* WIP * Finished cleaning favorites create, update, delete on record show page * Fixed context menu favorite * Fixed relation field bug * Fix from review * Review --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -84,7 +84,11 @@ export const useOptimisticEffect = ({
|
||||
variables,
|
||||
});
|
||||
|
||||
if (!existingData) {
|
||||
if (
|
||||
!existingData &&
|
||||
(isNonEmptyArray(updatedRecords) ||
|
||||
isNonEmptyArray(deletedRecordIds))
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user