From a49a7a7ba1c66d9b7caef7ead08bff47dd74dbbb Mon Sep 17 00:00:00 2001 From: Florian Necas Date: Thu, 6 Jul 2023 11:31:56 +0200 Subject: [PATCH] fix: set default value to 0 and check nullity --- .../src/lib/components/wizard-field/wizard-field.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.ts b/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.ts index 087ff3285c..fe45598346 100644 --- a/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.ts +++ b/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.ts @@ -103,7 +103,7 @@ export class WizardFieldComponent implements AfterViewInit, OnDestroy { return data ? new Date(Number(data)) : new Date() } case WizardFieldType.DROPDOWN: { - return data ? JSON.parse(data) : this.dropdownChoices[1].value + return data ? JSON.parse(data) : this.dropdownChoices[0]?.value } } }