only trigger cellClick if selection defined (#30855) (#30959)

This commit is contained in:
Melissa Alvarez 2019-02-13 12:04:29 -05:00 committed by GitHub
parent 49f1d16d48
commit 9f664f15c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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({});
}
})