Skip to content

Commit 5452665

Browse files
DocGarbanzoclaude
andcommitted
Fix JS cache busting and store selectedField in segment stats callback
The imupath.js version string in the HTML was stale (20260125b), so browsers kept serving a cached copy that lacked the time/distance ranking key fix. Bumped to 20260131 to force a fresh fetch. Also ensured appState.selectedField is set in the AJAX success callback so getSegmentRanking() uses the correct key when looking up rankings for built-in fields like time and distance. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent e15a4ad commit 5452665

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

donkeycar/parts/web_controller/templates/imupath.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,6 @@
422422
</div>
423423
</div>
424424

425-
<script src="/static/imupath.js?v=20260125b"></script>
425+
<script src="/static/imupath.js?v=20260131"></script>
426426
</body>
427427
</html>

donkeycar/parts/web_controller/templates/static/imupath.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ function computeSegmentStatistics() {
261261
dataType: 'json',
262262
success: function(response) {
263263
appState.segmentRankings = response.rankings || null;
264+
appState.selectedField = fieldName; // Store for getSegmentRanking()
264265
$('#stats-spinner').hide();
265266

266267
// Refresh display

0 commit comments

Comments
 (0)