Skip to content

Commit

Permalink
only trigger cellClick if selection defined (#30855)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 committed Feb 13, 2019
1 parent 9c4fbd5 commit 747bf2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/ml/public/explorer/explorer_swimlane.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export const ExplorerSwimlane = injectI18n(class ExplorerSwimlane extends React.
.style('width', `${laneLabelWidth}px`)
.html(label => mlEscape(label))
.on('click', () => {
if (typeof selection.lanes !== 'undefined') {
if (selection && typeof selection.lanes !== 'undefined') {
swimlaneCellClick({});
}
})
Expand Down

0 comments on commit 747bf2a

Please sign in to comment.