Skip to content

Commit 14fc4ec

Browse files
tree: prevent family searching when in flat mode
1 parent a817739 commit 14fc4ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/Tree.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export default {
226226
227227
filterState () {
228228
return (this.tasksFilter.id?.trim() || this.tasksFilter.states?.length)
229-
? [this.tasksFilter.id, this.tasksFilter.states]
229+
? [this.tasksFilter.id, this.tasksFilter.states, this.flat]
230230
: null
231231
},
232232
@@ -330,7 +330,7 @@ export default {
330330
// follow the family tree from cycle point nodes
331331
children = node.familyTree[0]?.children
332332
}
333-
if (children) {
333+
if (!this.flat && children) {
334334
for (const child of children) {
335335
isMatch = this.filterNode(child, filteredOutNodesCache, idMatch) || isMatch
336336
// Note: do not break early as we must run the filter over all children

0 commit comments

Comments
 (0)