Skip to content

Commit

Permalink
fix rendering concept from repository
Browse files Browse the repository at this point in the history
  • Loading branch information
redradrat committed Oct 17, 2020
1 parent cc41b4c commit bc5cb26
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/concepts/rendering.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,17 +232,20 @@ func renderConcept(id string, avs *RenderValues, ttype TargetType, opts RenderOp
return nil, errors.InvalidConceptIdentifierError
}

r, err := repositories.GetRepository(id)
ci := ConceptIdentifier(id)
r, err := repositories.GetRepository(ci.Repo())
if err != nil {
return nil, err
}

// Get the repo path
path, err = r.AbsolutePath()
repopath, err := r.AbsolutePath()
if err != nil {
return nil, err
}

path = filepath.Join(repopath, ci.Concept())

// Get the origin of the the concept
origin = &ConceptOrigin{
Repository: r.URL,
Expand Down

0 comments on commit bc5cb26

Please sign in to comment.