Merge pull request #4797 from FinnStutzenstein/fixSelfReferencingRelationshipUpdates
Fixed updates for self references in BaseRepository (closes #4796)
This commit is contained in:
commit
f8fabbabd1
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user