Skip to content

Commit

Permalink
vue(components): fix condition in tuple rendering
Browse files Browse the repository at this point in the history
We don't want to add a trailing comma to the rendered items. Instead, we
want everything _up until_ the last element to be comma-separated.

Change-Id: Ic3ecbb7b3edbdffa8b8d97e5d9094b7e5421adcb
  • Loading branch information
logan-connolly committed Feb 12, 2025
1 parent 6b66359 commit 3a79569
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function renderTuple(
return h('span', [
formSpec.show_titles && title ? `${title}: ` : h([]),
renderForm(element, value[index], elementValidations[index]),
index === formSpec.elements.length - 1 && formSpec.layout === 'horizontal' ? ', ' : ''
index !== formSpec.elements.length - 1 && formSpec.layout === 'horizontal' ? ', ' : ''
])
})
]
Expand Down

0 comments on commit 3a79569

Please sign in to comment.