Skip to content

Commit

Permalink
#471: Fix tasks filter
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Mar 3, 2022
1 parent 531e6d6 commit 2d77139
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/views/Tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ class Tasks extends React.Component {
}

handleOnFilter (value) {
this.setState({ filterId: value.id })
if (value) {
this.setState({ filterId: value.id })
}
}

handleOnSelect (value) {
window.location.href = '/Task/' + value.id
if (value) {
window.location.href = '/Task/' + value.id
}
}

componentDidMount () {
Expand Down

0 comments on commit 2d77139

Please sign in to comment.