added missing unsubscription in onebox component

This commit is contained in:
Danilo Di Nuzzo
2020-08-03 16:52:28 +02:00
parent 793698a6d8
commit 9b69aaaa07

View File

@@ -123,11 +123,11 @@ export class DsDynamicOneboxComponent extends DsDynamicVocabularyComponent imple
distinctUntilChanged()
);
this.group.get(this.model.id).valueChanges.pipe(
this.subs.push(this.group.get(this.model.id).valueChanges.pipe(
filter((value) => this.currentValue !== value))
.subscribe((value) => {
this.setCurrentValue(this.model.value);
});
}));
}
/**