Skip to content
Snippets Groups Projects
Commit 12f173bb authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

fix(filters): archived items visible when inProgress filter is selected

parent c362da39
No related branches found
No related tags found
1 merge request!13Sprint #14
...@@ -37,7 +37,10 @@ const filterFn = (filterValue, { currentUser, userPermissions = [] }) => ({ ...@@ -37,7 +37,10 @@ const filterFn = (filterValue, { currentUser, userPermissions = [] }) => ({
case FILTER_VALUES.NEEDS_ATTENTION: case FILTER_VALUES.NEEDS_ATTENTION:
return get(statuses, `${status}.${userRole}.needsAttention`) return get(statuses, `${status}.${userRole}.needsAttention`)
case FILTER_VALUES.IN_PROGRESS: case FILTER_VALUES.IN_PROGRESS:
return !get(statuses, `${status}.${userRole}.needsAttention`) return (
!archivedStatuses.includes(status) &&
!get(statuses, `${status}.${userRole}.needsAttention`)
)
default: default:
return true return true
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment