Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Fixed null exception
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc authored and bsclifton committed Jan 17, 2017
1 parent 2b138a0 commit 4aa4d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/components/contextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ class ContextMenu extends ImmutableComponent {
}

get hasSubmenuSelection () {
return this.props.selectedIndex.length > 1
return (this.props.selectedIndex === null) ? false : this.props.selectedIndex.length > 1
}

render () {
Expand Down

0 comments on commit 4aa4d72

Please sign in to comment.