From d699f900805dc12ace91b7ba438b2d5176a7b405 Mon Sep 17 00:00:00 2001 From: Guillaume Grossetie Date: Mon, 16 Dec 2024 18:29:02 +0100 Subject: [PATCH] =?UTF-8?q?resolves=20#1134=20inverse=20l'ordre=20des=20?= =?UTF-8?q?=C3=A9lements=20pour=20afficher=20le=20dernier=20=C3=A9l=C3=A9m?= =?UTF-8?q?ent=20en=20premier=20(#1144)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/components/Form.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/front/src/components/Form.jsx b/front/src/components/Form.jsx index 378b04a9e..de0db43d2 100644 --- a/front/src/components/Form.jsx +++ b/front/src/components/Form.jsx @@ -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 (
{(t) => t(addItemTitle)} )} - {properties.items && - properties.items.map((element) => { + {items && + items.map((element) => { return (