Skip to content

Commit

Permalink
fix: set default value to 0 and check nullity
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas committed Jul 6, 2023
1 parent fcc8d12 commit a49a7a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down

0 comments on commit a49a7a7

Please sign in to comment.