Calendar: Fix TypeError: Cannot read properties of null (reading 'getValue')

Thrown when creating a new event via quick add or changing the start date
This commit is contained in:
nathan 2022-03-07 13:45:58 -07:00
parent 734401c6cd
commit 3c656701f5

View File

@ -1498,7 +1498,7 @@ export class CalendarApp extends EgwApp
}
// Update end date, min duration is 1 minute
let end = <et2_date> widget.getRoot().getDOMWidgetById('end');
let end = <et2_date>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)