safer handling of componentValueQuantity.
This commit is contained in:
parent
08f8722826
commit
99317bc71c
|
@ -16,10 +16,15 @@
|
||||||
|
|
||||||
|
|
||||||
{{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")}}
|
||||||
|
{{if lt $index (len $componentValueQuantityUnit)}}
|
||||||
{{index $componentValueQuantityUnit $index}}
|
{{index $componentValueQuantityUnit $index}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
{{end}}
|
||||||
<br/>
|
<br/>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue