Favorites should be user-level not workspace-level (#5186)

### Description
Favorites should be user-level not workspace-level

### Refs
#3374

### Demo


https://github.com/twentyhq/twenty/assets/140154534/38a34cc7-ac58-494f-92d5-e15c43ae542e

Fixes #3374

---------

Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
gitstart-twenty
2024-04-30 22:42:44 +08:00
committed by GitHub
parent bc0d30f28b
commit 9ad68ffe84
2 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,11 @@ export const useFavorites = () => {
const { records: favorites } = usePrefetchedData<Favorite>(
PrefetchKey.AllFavorites,
{
workspaceMemberId: {
eq: currentWorkspaceMember?.id ?? '',
},
},
);
const favoriteRelationFieldMetadataItems = useMemo(