From 3c656701f595d96f0f4d0fb275715303f1f11b92 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 7 Mar 2022 13:45:58 -0700 Subject: [PATCH] Calendar: Fix TypeError: Cannot read properties of null (reading 'getValue') Thrown when creating a new event via quick add or changing the start date --- calendar/js/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/js/app.ts b/calendar/js/app.ts index 6374db3d46..da1a99c997 100644 --- a/calendar/js/app.ts +++ b/calendar/js/app.ts @@ -1498,7 +1498,7 @@ export class CalendarApp extends EgwApp } // Update end date, min duration is 1 minute - let end = widget.getRoot().getDOMWidgetById('end'); + let end = widget.getRoot().getWidgetById('end'); let start_time = new Date(widget.getValue()); let end_time = new Date(end.getValue()); if(end.getValue() && end_time <= start_time)