Skip to content

Commit

Permalink
resolves #1134 inverse l'ordre des élements pour afficher le dernier …
Browse files Browse the repository at this point in the history
…élément en premier (#1144)
  • Loading branch information
ggrossetie authored Dec 16, 2024
1 parent a2f9b08 commit d699f90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions front/src/components/Form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ function ArrayFieldTemplate(properties) {
const title = properties.uiSchema['ui:title']
const inlineRemoveButton =
properties.schema?.items?.type === 'string' || !removeItemTitle
const items = [...properties.items].reverse()
return (
<fieldset
className={clsx(styles.fieldset, styles.array)}
Expand All @@ -138,8 +139,8 @@ function ArrayFieldTemplate(properties) {
<Translation>{(t) => t(addItemTitle)}</Translation>
</Button>
)}
{properties.items &&
properties.items.map((element) => {
{items &&
items.map((element) => {
return (
<div
id={element.key}
Expand Down

0 comments on commit d699f90

Please sign in to comment.