mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
added missing unsubscription in onebox component
This commit is contained in:
@@ -123,11 +123,11 @@ export class DsDynamicOneboxComponent extends DsDynamicVocabularyComponent imple
|
|||||||
distinctUntilChanged()
|
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))
|
filter((value) => this.currentValue !== value))
|
||||||
.subscribe((value) => {
|
.subscribe((value) => {
|
||||||
this.setCurrentValue(this.model.value);
|
this.setCurrentValue(this.model.value);
|
||||||
});
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user