Skip to content

Commit

Permalink
Fix nomination-list in assignment poll track usage (#4115)
Browse files Browse the repository at this point in the history
  • Loading branch information
reiterl authored Sep 16, 2024
1 parent 56e5cf3 commit 7b4be9f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
{{ poll.options.length ? poll.options.length + ' ' : '' }}{{ 'Candidates' | translate }}:
@if (enumerateCandidates) {
<ol>
@for (option of poll.options; track option) {
@for (option of poll.options; track option.id) {
<li>{{ getOptionTitle(option) | translate }}</li>
}
</ol>
}
@if (!enumerateCandidates) {
<ul>
@for (option of poll.options; track option) {
@for (option of poll.options; track option.id) {
<li>{{ getOptionTitle(option) | translate }}</li>
}
</ul>
Expand All @@ -28,14 +28,14 @@
{{ 'Candidates' | translate }}):
@if (enumerateCandidates) {
<ol>
@for (title of poll.options[0]?.contentTitlesAsSortedArray; track title) {
@for (title of poll.options[0]?.contentTitlesAsSortedArray; track $index) {
<li>{{ title.title }}{{ title.subtitle ? ' (' + title.subtitle + ')' : '' }}</li>
}
</ol>
}
@if (!enumerateCandidates) {
<ul>
@for (title of poll.options[0]?.contentTitlesAsSortedArray; track title) {
@for (title of poll.options[0]?.contentTitlesAsSortedArray; track $index) {
<li>{{ title.title }}{{ title.subtitle ? ' (' + title.subtitle + ')' : '' }}</li>
}
</ul>
Expand Down

0 comments on commit 7b4be9f

Please sign in to comment.