Skip to content

Commit

Permalink
separate condition rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed Jan 18, 2024
1 parent 6d3c8e4 commit 364b841
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,9 @@ func ListItems(itemType string, w http.ResponseWriter, r *http.Request) {
if expansions.Has("conditions") {
if p.Conditions != nil {
item.Conditions = RenderConditions(&p.Conditions, lang)
}

if p.ConditionTree != nil {
item.ConditionTree = RenderConditionTree(p.ConditionTree, lang)
}
}
Expand Down

0 comments on commit 364b841

Please sign in to comment.