Fixed updates for self references in BaseRepository (closes #4796)

This commit is contained in:
FinnStutzenstein 2019-06-19 09:04:12 +02:00
parent c7088a4b73
commit c2f14397f2
2 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ export abstract class BaseRepository<V extends BaseViewModel & T, M extends Base
const dependencyChanged: boolean = this.depsModelCtors.some(ctor => {
return ctor.COLLECTIONSTRING === collection;
});
if (collection === this.collectionString || !dependencyChanged) {
if (!dependencyChanged) {
return;
}

View File

@ -275,7 +275,7 @@ export class MotionRepositoryService extends BaseIsAgendaItemAndListOfSpeakersCo
const dependencyChanged: boolean = this.depsModelCtors.some(ctor => {
return ctor.COLLECTIONSTRING === collection;
});
if (collection === this.collectionString || !dependencyChanged) {
if (!dependencyChanged) {
return;
}