Skip to content

Commit 9671cee

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ 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
231+
? daysBetweenDates(new Date(start), new Date(end))
232+
: DAY_RANGE;
231233
const msg = `${days} day history`;
232234
if (date !== null) {
233235
return `${msg} (${start} → ${end})`;

0 commit comments

Comments
 (0)