Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
derschnee68 committed Jul 11, 2024
1 parent 74bf224 commit 5650392
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { ChangeDetectorRef, Component, Input, OnDestroy, OnInit } from '@angular/core';
import { ReadResource } from '@dasch-swiss/dsp-js';
import { Segment, SegmentsService } from '@dasch-swiss/vre/shared/app-segment-support';
import { Subscription } from 'rxjs';
Expand All @@ -23,7 +23,10 @@ export class SegmentTabComponent implements OnInit, OnDestroy {
selectedSegment: Segment | null = null;
subscription!: Subscription;

constructor(public segmentsService: SegmentsService) {}
constructor(
public segmentsService: SegmentsService,
private _cdr: ChangeDetectorRef
) {}

ngOnInit() {
this.subscription = this.segmentsService.highlightSegment$
Expand All @@ -35,6 +38,7 @@ export class SegmentTabComponent implements OnInit, OnDestroy {
if (segment !== null) {
this._openSegment(segment.resource.res.id);
}
this._cdr.detectChanges();
});
}

Expand Down

0 comments on commit 5650392

Please sign in to comment.