Skip to content

Commit

Permalink
fix(ontology): bug fix in create ontology process (DSP-1558) (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
kilchenmann committed Apr 20, 2021
1 parent 726aba5 commit bbd825b
Showing 1 changed file with 3 additions and 8 deletions.
Expand Up @@ -102,14 +102,9 @@ export class OntologyFormComponent implements OnInit {

this.loading = true;

// set the cache
this._cache.get(this.projectCode, this._dspApiConnection.admin.projectsEndpoint.getProjectByShortcode(this.projectCode));

// get project
this._cache.get(this.projectCode, this._dspApiConnection.admin.projectsEndpoint.getProjectByShortcode(this.projectCode)).subscribe(
(response: ApiResponseData<ProjectResponse>) => {
this.project = response.body.project;

this._cache.get(this.projectCode).subscribe(
(response: ReadProject) => {
this.project = response;
this.buildForm();

this.loading = false;
Expand Down

0 comments on commit bbd825b

Please sign in to comment.