From c2f14397f29667d510192befbb9a5805cb4dbe15 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Wed, 19 Jun 2019 09:04:12 +0200 Subject: [PATCH] Fixed updates for self references in BaseRepository (closes #4796) --- client/src/app/core/repositories/base-repository.ts | 2 +- .../app/core/repositories/motions/motion-repository.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/app/core/repositories/base-repository.ts b/client/src/app/core/repositories/base-repository.ts index 6624da3a1..718a19741 100644 --- a/client/src/app/core/repositories/base-repository.ts +++ b/client/src/app/core/repositories/base-repository.ts @@ -169,7 +169,7 @@ export abstract class BaseRepository { return ctor.COLLECTIONSTRING === collection; }); - if (collection === this.collectionString || !dependencyChanged) { + if (!dependencyChanged) { return; } diff --git a/client/src/app/core/repositories/motions/motion-repository.service.ts b/client/src/app/core/repositories/motions/motion-repository.service.ts index 36ac5ff3a..97f822bd1 100644 --- a/client/src/app/core/repositories/motions/motion-repository.service.ts +++ b/client/src/app/core/repositories/motions/motion-repository.service.ts @@ -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; }