Skip to content

Commit

Permalink
fix: resource initialisation (DEV-3656) (#1590)
Browse files Browse the repository at this point in the history
  • Loading branch information
irmastnt committed May 16, 2024
1 parent 595a958 commit 381d4f2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/dsp-app/src/app/workspace/resource/resource.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,8 @@ export class ResourceComponent implements OnChanges, OnInit, OnDestroy {
this.oldResourceIri = this.resourceIri;
this._getResource(iri)
.pipe(switchMap(() => this._store.select(ResourceSelectors.resource)))
.subscribe(dspResource => {
this._renderResource(dspResource);
});
.pipe(take(1))
.subscribe(dspResource => this._renderResource(dspResource));
}

private _getResource(iri: string): Observable<DspResource> {
Expand Down

0 comments on commit 381d4f2

Please sign in to comment.