Fix self-referencing projectors with new dependency management

This commit is contained in:
FinnStutzenstein 2019-05-10 06:45:49 +02:00
parent cef2e45b34
commit b445946f54
1 changed files with 1 additions and 1 deletions

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;