Supress adsb errors
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user