Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Check that event exists to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lgariepy committed Oct 10, 2017
1 parent 0e43e5b commit d285c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SidebarCollapsibleCard/index.js
Expand Up @@ -40,7 +40,7 @@ class SidebarCollapsibleCard extends Component {
}

handleToggleOpen (e) {
e.preventDefault()
e && e.preventDefault()
this.setState({ isOpen: !this.state.isOpen })
}

Expand Down

0 comments on commit d285c70

Please sign in to comment.