Skip to content

Commit

Permalink
Avoid undefined error in Tree component
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow committed Sep 6, 2021
1 parent 9a52548 commit 17dd08d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/cylc/tree/Tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ export default {
})
},
tasksFilterStates: function () {
if (!this.activeFilters) {
return []
}
return this.activeFilters.states.map(selectedTaskState => {
return selectedTaskState
})
Expand Down

0 comments on commit 17dd08d

Please sign in to comment.