fix(satellites): a hidden class stays out of analyst and voice answers; the tracked satellite still answers

This commit is contained in:
Sameh Khamis committed 2026-11-08 15:16:01 -08:00
1 parent b59eb8b18c
commit 7dcf671b2e
3 files changed
+62 -1

No files matched your search

+6
View File
@@ -86,6 +86,12 @@ export function createRecords({ state, parts }) {
const result = [];
const emit = (noradId, sat) => {
if (result.length >= limit) return false;
// A class the user hid stays out of answers too; the tracked one stays.
if (
noradId !== state._trackedNorad &&
parts.controls?._classVisible?.(noradId) === false
)
return true;
const pos = analystGeo(noradId, sat, now);
if (!pos) return true;
result.push(