Merge pull request #4797 from FinnStutzenstein/fixSelfReferencingRelationshipUpdates

Fixed updates for self references in BaseRepository (closes #4796)
This commit is contained in:
Finn Stutzenstein 2019-06-19 09:15:24 +02:00 committed by GitHub
commit f8fabbabd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}