Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit 5d18a38

Browse files
committed
fix for buggy drilldown from timeline bars
Fixes #738
1 parent 4023b7c commit 5d18a38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/plugins/modules/activation-visualizations/lib/timeline-histogram.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ const _drawTimeline = ({options, content, timelineData}) => () => {
323323
const { _datasetIndex, _index } = elements[0],
324324
timeRangeStart = labels[_index],
325325
timeRangeEnd = _index === labels.length - 1 ? last : labels[_index + 1]
326-
if (_datasetIndex < 2) {
327-
const filter = _datasetIndex === 0 ? 'success' : 'failure'
326+
if (_datasetIndex <= 2) {
327+
const filter = _datasetIndex === 1 ? 'success' : 'failure'
328328
drilldownWith(viewName, `grid ${optionsToString(options)} --since ${timeRangeStart} --upto ${timeRangeEnd} --${filter}`)()
329329
}
330330
}

0 commit comments

Comments
 (0)