Skip to content

Commit 7e8015c

Browse files
committed
Fix NAN day history in graph title for try commit
1 parent 5c905e5 commit 7e8015c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/frontend/src/pages/compare/compile/table/benchmark-detail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ async function renderGraph(
227227
228228
function getGraphTitle() {
229229
const {start, end, date} = graphRange.value;
230-
const days = daysBetweenDates(new Date(start), new Date(end));
230+
const days = date ? daysBetweenDates(new Date(start), new Date(end)): DAY_RANGE;
231231
const msg = `${days} day history`;
232232
if (date !== null) {
233233
return `${msg} (${start} → ${end})`;

0 commit comments

Comments
 (0)