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 Aug 31, 2021
1 parent 22c17f1 commit ee607a7
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 ee607a7

Please sign in to comment.