Skip to content
Permalink
Browse files
fix(resource): create resource iri from route only in certain cases (D…
…EV-306) (#605)

* fix(resource): create resource iri from route only in certain cases (DEV-306)

* refactor(resource): remove if
  • Loading branch information
kilchenmann committed Dec 8, 2021
1 parent 80b3f93 commit a38abd01f24ef98518042d6d8136f21ad0bc5368
Showing 1 changed file with 3 additions and 1 deletion.
@@ -106,7 +106,9 @@ export class ResourceComponent implements OnInit, OnChanges, OnDestroy {
this.projectCode = params['project'];
this.resourceUuid = params['resource'];
this.valueUuid = params['value'];
this.resourceIri = this._resourceService.getResourceIri(this.projectCode, this.resourceUuid);
if (this.projectCode && this.resourceUuid) {
this.resourceIri = this._resourceService.getResourceIri(this.projectCode, this.resourceUuid);
}
this.getResource(this.resourceIri);
});

0 comments on commit a38abd0

Please sign in to comment.