From b43434a433181fa57f6078247b8c8177652b3fe3 Mon Sep 17 00:00:00 2001 From: Kim Shepherd Date: Thu, 1 Aug 2024 15:27:09 +0200 Subject: [PATCH] #3217: Do not subscribe to model valueChanges for onebox values --- .../models/onebox/dynamic-onebox.component.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/app/shared/form/builder/ds-dynamic-form-ui/models/onebox/dynamic-onebox.component.ts b/src/app/shared/form/builder/ds-dynamic-form-ui/models/onebox/dynamic-onebox.component.ts index 23cec6b502e..8141075bcdf 100644 --- a/src/app/shared/form/builder/ds-dynamic-form-ui/models/onebox/dynamic-onebox.component.ts +++ b/src/app/shared/form/builder/ds-dynamic-form-ui/models/onebox/dynamic-onebox.component.ts @@ -185,12 +185,6 @@ export class DsDynamicOneboxComponent extends DsDynamicVocabularyComponent imple this.isHierarchicalVocabulary$ = this.vocabulary$.pipe( map((result: Vocabulary) => result.hierarchical), ); - - this.subs.push(this.group.get(this.model.id).valueChanges.pipe( - filter((value) => this.currentValue !== value)) - .subscribe((value) => { - this.setCurrentValue(this.model.value); - })); } /**