We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e47996c + ed690f2 commit beaba28Copy full SHA for beaba28
ui/ui-frontend/projects/vitamui-library/src/lib/components/pattern/pattern.component.ts
@@ -107,7 +107,10 @@ export class PatternComponent implements ControlValueAccessor {
107
108
remove(pattern: string) {
109
this.patterns = this.patterns.filter((p) => p !== pattern);
110
- this.availableOptions.find((o) => o.key === pattern).disabled = false;
+ const option = this.availableOptions.find((o) => o.key === pattern);
111
+ if (option) {
112
+ option.disabled = false;
113
+ }
114
this.onChange(this.patterns);
115
if (this.enabledOptions().length > 0 && this.control.disabled) {
116
this.control.enable();
0 commit comments