Skip to content

Commit

Permalink
fix(core): handle undefined enum value in display-configurable-enum.c…
Browse files Browse the repository at this point in the history
…omponent.ts gracefully
  • Loading branch information
sleidig committed Jul 2, 2024
1 parent b7877ac commit ed5ad89
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ export class DisplayConfigurableEnumComponent
iterableValue: ConfigurableEnumValue[] = [];

ngOnInit() {
this.initValue();
}

private initValue() {
if (!this.value) {
return;
}

if (Array.isArray(this.value)) {
this.iterableValue = this.value;
} else if (this.value) {
Expand Down

0 comments on commit ed5ad89

Please sign in to comment.