diff --git a/packages/twenty-front/src/modules/activities/tasks/hooks/useTasks.ts b/packages/twenty-front/src/modules/activities/tasks/hooks/useTasks.ts index 1d6293ddfc..e194a4d8d6 100644 --- a/packages/twenty-front/src/modules/activities/tasks/hooks/useTasks.ts +++ b/packages/twenty-front/src/modules/activities/tasks/hooks/useTasks.ts @@ -46,7 +46,7 @@ export const useTasks = (props?: UseTasksProps) => { type: { eq: 'Task' }, ...(isNonEmptyString(selectedFilter?.value) && { assigneeId: { - eq: selectedFilter?.value, + in: JSON.parse(selectedFilter?.value), }, }), }, @@ -70,7 +70,7 @@ export const useTasks = (props?: UseTasksProps) => { type: { eq: 'Task' }, ...(isNonEmptyString(selectedFilter?.value) && { assigneeId: { - eq: selectedFilter?.value, + in: JSON.parse(selectedFilter?.value), }, }), }, diff --git a/packages/twenty-front/src/pages/tasks/TasksEffect.tsx b/packages/twenty-front/src/pages/tasks/TasksEffect.tsx index 24554d9358..859b167f0a 100644 --- a/packages/twenty-front/src/pages/tasks/TasksEffect.tsx +++ b/packages/twenty-front/src/pages/tasks/TasksEffect.tsx @@ -26,7 +26,7 @@ export const TasksEffect = ({ filterDropdownId }: TasksEffectProps) => { if (currentWorkspaceMember) { setSelectedFilter({ fieldMetadataId: 'assigneeId', - value: currentWorkspaceMember.id, + value: JSON.stringify(currentWorkspaceMember.id), operand: ViewFilterOperand.Is, displayValue: currentWorkspaceMember.name?.firstName +