From e2e8b85ed9759122ab730ff42009ef90d7f21806 Mon Sep 17 00:00:00 2001 From: Matt LaPaglia Date: Tue, 28 Sep 2021 22:42:18 -0400 Subject: [PATCH] don't do it when no date is selected (#92) --- .../ClientApp/src/app/plates/plates.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenAlprWebhookProcessor/ClientApp/src/app/plates/plates.component.ts b/OpenAlprWebhookProcessor/ClientApp/src/app/plates/plates.component.ts index 46c32c2d..c9caaffc 100644 --- a/OpenAlprWebhookProcessor/ClientApp/src/app/plates/plates.component.ts +++ b/OpenAlprWebhookProcessor/ClientApp/src/app/plates/plates.component.ts @@ -168,8 +168,8 @@ export class PlatesComponent implements OnInit, OnDestroy, AfterViewInit { this.filterPlateNumber = plateNumber; } - this.filterStartOn.setUTCHours(0,0,0,0); - this.filterEndOn.setUTCHours(23,59,59,999); + this.filterStartOn?.setUTCHours(0,0,0,0); + this.filterEndOn?.setUTCHours(23,59,59,999); request.pageNumber = this.pageNumber; request.pageSize = this.pageSize;