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:
Deepak Kumar 2023-12-18 12:46:38 +05:30 committed by GitHub
parent f6041f560d
commit 3609c0939d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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),
},
}),
},

View File

@ -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 +