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:
parent
d895053d2e
commit
841b458a5f
|
|
@ -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))
|
||||
},
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue