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 3, 2024
1 parent 36c2a2f commit 5dd5a2b
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 5dd5a2b

Please sign in to comment.