fix: pass saved filter context to subtask visibility check

When viewing tasks through a saved filter, pass isFilteredView=true
to shouldShowTaskInListView so subtasks are not incorrectly hidden.

Ref: #2494
This commit is contained in:
kolaente 2026-04-02 18:58:52 +02:00 committed by kolaente
parent d895053d2e
commit 841b458a5f
1 changed files with 2 additions and 1 deletions

View File

@ -167,7 +167,8 @@ const tasks = ref<ITask[]>([])
watch(
allTasks,
() => {
tasks.value = ([...allTasks.value]).filter(t => shouldShowTaskInListView(t, allTasks.value))
const isFiltered = isSavedFilter({id: projectId.value})
tasks.value = ([...allTasks.value]).filter(t => shouldShowTaskInListView(t, allTasks.value, isFiltered))
},
)