Fixed updates for self references in BaseRepository (closes #4796)
This commit is contained in:
parent
c7088a4b73
commit
c2f14397f2
@ -169,7 +169,7 @@ export abstract class BaseRepository<V extends BaseViewModel & T, M extends Base
|
|||||||
const dependencyChanged: boolean = this.depsModelCtors.some(ctor => {
|
const dependencyChanged: boolean = this.depsModelCtors.some(ctor => {
|
||||||
return ctor.COLLECTIONSTRING === collection;
|
return ctor.COLLECTIONSTRING === collection;
|
||||||
});
|
});
|
||||||
if (collection === this.collectionString || !dependencyChanged) {
|
if (!dependencyChanged) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -275,7 +275,7 @@ export class MotionRepositoryService extends BaseIsAgendaItemAndListOfSpeakersCo
|
|||||||
const dependencyChanged: boolean = this.depsModelCtors.some(ctor => {
|
const dependencyChanged: boolean = this.depsModelCtors.some(ctor => {
|
||||||
return ctor.COLLECTIONSTRING === collection;
|
return ctor.COLLECTIONSTRING === collection;
|
||||||
});
|
});
|
||||||
if (collection === this.collectionString || !dependencyChanged) {
|
if (!dependencyChanged) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user