We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 11a3c71 + 93952fa commit c61ebd9Copy full SHA for c61ebd9
site/frontend/src/graph/render.ts
@@ -356,8 +356,11 @@ function genPlotOpts({
356
},
357
tooltipPlugin({
358
onclick(_u, _seriesIdx, dataIdx) {
359
+ // No earlier data to show
360
+ if (dataIdx == 0) return;
361
+
362
let thisCommit = commits[dataIdx][1];
- let prevCommit = (commits[dataIdx - 1] || [null, null])[1];
363
+ let prevCommit = commits[dataIdx - 1][1];
364
window.open(
365
`/compare.html?start=${prevCommit}&end=${thisCommit}&stat=${stat}`
366
);
0 commit comments