mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-23 22:12:24 +03:00
GH-3028 Update filter key and JSON parse assignee selected filter on tasks page (#3045)
GH-3028 update key and JSON parse assignee selected filter on tasks page
This commit is contained in:
parent
f6041f560d
commit
3609c0939d
@ -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),
|
||||
},
|
||||
}),
|
||||
},
|
||||
|
@ -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 +
|
||||
|
Loading…
Reference in New Issue
Block a user