diff --git a/app/composables/useProducts.js b/app/composables/useProducts.js index 9a90ed7..60d2780 100644 --- a/app/composables/useProducts.js +++ b/app/composables/useProducts.js @@ -42,6 +42,10 @@ export function useProducts () { const hasConstructeurs = Array.isArray(product.constructeurs) && product.constructeurs.length > 0 + if (hasConstructeurs && ids.length) { + product.constructeurIds = ids + } + if (ids.length && !hasConstructeurs) { const resolved = await ensureConstructeurs(ids) if (resolved.length) { diff --git a/app/pages/product/create.vue b/app/pages/product/create.vue index 3140cad..c28d08a 100644 --- a/app/pages/product/create.vue +++ b/app/pages/product/create.vue @@ -1,5 +1,5 @@ - - + + Nouveau produit @@ -231,7 +231,7 @@ - +