Skip to content

Commit

Permalink
fix(resource): create resource iri from route only in certain cases (D…
Browse files Browse the repository at this point in the history
…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 a38abd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/workspace/resource/resource.component.ts
Expand Up @@ -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);
});

Expand Down

0 comments on commit a38abd0

Please sign in to comment.