Skip to content

Commit 951c0e1

Browse files
committed
Avoid undefined error in Tree component
1 parent 6a80359 commit 951c0e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/cylc/tree/Tree.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ export default {
218218
})
219219
},
220220
tasksFilterStates: function () {
221+
if (!this.activeFilters) {
222+
return []
223+
}
221224
return this.activeFilters.states.map(selectedTaskState => {
222225
return selectedTaskState
223226
})

0 commit comments

Comments
 (0)