build error fix
This commit is contained in:
+1
-1
@@ -455,7 +455,7 @@ const shouldTaskBeVisible = (task: any, currentUserId: string): boolean => {
|
|||||||
// We ignore the rule.ownerId check (which would match the task.user)
|
// We ignore the rule.ownerId check (which would match the task.user)
|
||||||
// and instead match purely on the tag.
|
// and instead match purely on the tag.
|
||||||
if (rule.ownerId === rule.targetUserId && rule.type === 'tag') {
|
if (rule.ownerId === rule.targetUserId && rule.type === 'tag') {
|
||||||
const tags = task.tags || [];
|
const tags: string[] = task.tags || [];
|
||||||
return tags.some(t => t.toLowerCase() === (rule.tagName || "").toLowerCase());
|
return tags.some(t => t.toLowerCase() === (rule.tagName || "").toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user