mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
added missing unsubscription in onebox component
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user