Supress adsb errors

This commit is contained in:
2026-06-27 17:54:27 -04:00
parent 96a86c4d12
commit 3d9a8f82ce

View File

@@ -82,7 +82,7 @@ export class AirTrafficLayer {
}
private async _fetch() {
const j = await fetch(`${API}/adsb`).then(r => r.json())
const j = await fetch(`${API}/adsb`).then(r => r.ok ? r.json() : []);
this.data = (j || []).map((a: any) => ({
...a,
icao: a.hex,