From a954e1eecde634ffe6dc5bfd9cb3fc3372ca2b90 Mon Sep 17 00:00:00 2001 From: Szymon Porwolik Date: Wed, 19 Nov 2025 00:06:29 +0100 Subject: [PATCH] Fix - purple mode and background fetch --- assets/js/sections/bandmap_list.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/assets/js/sections/bandmap_list.js b/assets/js/sections/bandmap_list.js index d43ba6939..00ab93248 100644 --- a/assets/js/sections/bandmap_list.js +++ b/assets/js/sections/bandmap_list.js @@ -714,8 +714,15 @@ $(function() { disposeTooltips(); table.clear(); - // Always fetch all bands - filtering happens client-side - fill_list(currentFilters.deContinent, dxcluster_maxage, 'All'); + // In purple mode, fetch only the active band; otherwise fetch all bands + let bandForRefresh = 'All'; + if (catState === 'on+marker') { + let currentBand = $('#band').val() || []; + if (currentBand.length === 1 && !currentBand.includes('All')) { + bandForRefresh = currentBand[0]; + } + } + fill_list(currentFilters.deContinent, dxcluster_maxage, bandForRefresh); refreshCountdown = SPOT_REFRESH_INTERVAL; } else { if (!isFetchInProgress && lastFetchParams.timestamp !== null) {