From 9b954b2c86c412539d046e78e652afbb9f2f9d3d Mon Sep 17 00:00:00 2001 From: Florian Glombik Date: Wed, 6 Nov 2024 21:40:51 +0100 Subject: [PATCH] Fix tests for date-time-picker.component.ts --- .../app/shared/date-time-picker/date-time-picker.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/app/shared/date-time-picker/date-time-picker.component.ts b/src/main/webapp/app/shared/date-time-picker/date-time-picker.component.ts index eacc3eefcf02..c1f06c23a88e 100644 --- a/src/main/webapp/app/shared/date-time-picker/date-time-picker.component.ts +++ b/src/main/webapp/app/shared/date-time-picker/date-time-picker.component.ts @@ -46,8 +46,8 @@ export class FormDateTimePickerComponent implements ControlValueAccessor { }); private updateSignals(): void { - this.isInputValid.set(!Boolean(this.dateInput.invalid)); - this.dateInputValue.set(this.dateInput.value); + this.isInputValid.set(!Boolean(this.dateInput?.invalid)); + this.dateInputValue.set(this.dateInput?.value); } private onChange?: (val?: dayjs.Dayjs) => void;