Skip to content

Commit

Permalink
[tasks] Fix edge case for assignedto filter
Browse files Browse the repository at this point in the history
  • Loading branch information
frankrousseau committed Nov 21, 2023
1 parent 65c4e6f commit d93a835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const applyFiltersFunctions = {
let isOk = false
if (filter.taskType) {
const task = taskMap.get(entry.validations.get(filter.taskType.id))
isOk = isOk || task.assignees.includes(filter.personId)
isOk = isOk || (task && task.assignees.includes(filter.personId))
} else if (entry.tasks) {
entry.tasks.forEach(taskId => {
const task = taskMap.get(taskId)
Expand Down

0 comments on commit d93a835

Please sign in to comment.