From c384e989a20c6518538de833f7a4389579394fa1 Mon Sep 17 00:00:00 2001 From: Cooper <105491171+azfv@users.noreply.github.com> Date: Sun, 21 Apr 2024 20:26:20 +1000 Subject: [PATCH] Add check to confirm extending sector has a volume --- atc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atc.js b/atc.js index c9953ea..93c36d9 100644 --- a/atc.js +++ b/atc.js @@ -300,7 +300,7 @@ export async function getOnlinePositions() { activeFrequencies.forEach(function(activeFrequency) { // Get all the sectors that use that frequency (but only the same position type as the primary position). var frequencySectors = sectors.filter(sector => sector.Frequency == activeFrequency - && sector.Callsign.toUpperCase().endsWith(onlineController.callsign.toUpperCase().slice(-3))); + && sector.volumes.length > 0 && sector.Callsign.toUpperCase().endsWith(onlineController.callsign.toUpperCase().slice(-3))); // If nothing found, continue. if (!frequencySectors) return; var extendedSector;