diff --git a/components/control_center/src/app/component/landing/landing.component.ts b/components/control_center/src/app/component/landing/landing.component.ts index 1c67bb4..bb4cf64 100644 --- a/components/control_center/src/app/component/landing/landing.component.ts +++ b/components/control_center/src/app/component/landing/landing.component.ts @@ -55,6 +55,9 @@ export class LandingComponent implements OnInit { startWith(0), switchMap(() => this.restService.getCarEvents(vin)) ).subscribe((data: any) => { + if (data.body === '') { + return; + } const carEvent = data.body as CarEvent; const car = this.car_markers.get(vin) as Car; car.carEvent = carEvent;