Merge pull request #4681 from FinnStutzenstein/fixClos

Fix self-referencing projectors with new dependency management
This commit is contained in:
Emanuel Schütze 2019-05-10 07:08:31 +02:00 committed by GitHub
commit c868a04571
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ export class ViewProjector extends BaseViewModel {
}
public get referenceProjector(): ViewProjector {
if (!this.reference_projector_id) {
if (!this.reference_projector_id || this.reference_projector_id === this.id) {
return this;
} else {
return this._referenceProjector;