From ac860d3165ebb560a7171c3a4e9a6efed0bf2cc1 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Mon, 23 Mar 2026 13:52:39 +0100 Subject: [PATCH] fix(constructeurs) : always send constructeurs array in PATCH payload --- app/shared/constructeurUtils.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/shared/constructeurUtils.ts b/app/shared/constructeurUtils.ts index b041cc7..7082653 100644 --- a/app/shared/constructeurUtils.ts +++ b/app/shared/constructeurUtils.ts @@ -155,9 +155,7 @@ export const buildConstructeurRequestPayload = >( delete next.constructeurs; delete next.constructeurIds; - if (ids.length) { - next.constructeurs = ids.map((id) => `/api/constructeurs/${id}`); - } + next.constructeurs = ids.map((id) => `/api/constructeurs/${id}`); return next as T & { constructeurs?: string[] }; };