From 26d52ffbe81a13433b1e7b8bfd11b10b7c2dd1e0 Mon Sep 17 00:00:00 2001 From: Justin Mayfield Date: Wed, 6 Nov 2024 10:29:18 -0700 Subject: [PATCH] Fix time range select regres --- src/site/performance/views.mjs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/site/performance/views.mjs b/src/site/performance/views.mjs index abbdbbc1..b395ae24 100644 --- a/src/site/performance/views.mjs +++ b/src/site/performance/views.mjs @@ -1,7 +1,5 @@ /* global sauce currentAthlete jQuery */ -// XXX All range is not detected properly now, (regression), shows 23 years instead in select - import {SauceView} from '../view.mjs'; import * as data from './data.mjs'; @@ -1881,10 +1879,10 @@ export class MainView extends PerfView { const $end = this.$('header .range.end'); const selectedRange = this.pageView.allRange ? 'all' : `${range.period},${range.metric}`; const $range = this.$('> header.filters select[name="range"]'); - let $option = $range.find(`select[name="range"] option[value="${selectedRange}"]`); + let $option = $range.find(`option[value="${selectedRange}"]`); if (!$option.length) { // Just manually add an entry. The user may be playing with the URL and that's fine. - $option = jQuery(``); $range.append($option); }