Closed jfmcquade closed 1 month ago
I found this works in general, but there is a case where somehow the first iteration of a local variable in a data-items loop is found, but next iterations are not. I thought it had to do with the presence of a display group, but that doesn't seem to be the case since this template works.
PR Checklist
[x] PR title descriptive (can be used in release notes)
TODO
[x] Builds on #2305, merge that first for clearer diffs
[x] Builds on the spec test files added by #2215, although should be able to be merged independently and resolve any conflicts afterwards
Description
Allows rows within a data-items loop to reference local variables (#2303).
Dev notes
This feels like a hack, and adding another caveat to the template-variables service logic doesn't feel great, but it does seem to work.
NB: view the code changes for
template-variables.service.ts
with whitespace changes hidden in order to see meaningful diff.Git Issues
Closes #2303
Screenshots/Videos
debug_data_items
debug_data_items_local