Skip to content

Commit

Permalink
safer handling of componentValueQuantity.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Mar 5, 2024
1 parent 63314aa commit 3cf77b2
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@


{{range $index, $text := $componentCodeText }}
{{$text}} - {{index $componentValueQuantity $index}}
{{$text}}
{{if lt $index (len $componentValueQuantity)}}
- {{index $componentValueQuantity $index}}
{{end}}
{{if (get $ "include_unit")}}
{{index $componentValueQuantityUnit $index}}
{{if lt $index (len $componentValueQuantityUnit)}}
{{index $componentValueQuantityUnit $index}}
{{end}}
{{end}}
<br/>
{{end}}
Expand Down

0 comments on commit 3cf77b2

Please sign in to comment.