safer handling of componentValueQuantity.

This commit is contained in:
Jason Kulatunga 2024-03-03 15:37:40 -08:00
parent 08f8722826
commit 99317bc71c
No known key found for this signature in database
1 changed files with 7 additions and 2 deletions

View File

@ -16,9 +16,14 @@
{{range $index, $text := $componentCodeText }} {{range $index, $text := $componentCodeText }}
{{$text}} - {{index $componentValueQuantity $index}} {{$text}}
{{if lt $index (len $componentValueQuantity)}}
- {{index $componentValueQuantity $index}}
{{end}}
{{if (get $ "include_unit")}} {{if (get $ "include_unit")}}
{{index $componentValueQuantityUnit $index}} {{if lt $index (len $componentValueQuantityUnit)}}
{{index $componentValueQuantityUnit $index}}
{{end}}
{{end}} {{end}}
<br/> <br/>
{{end}} {{end}}