fix: add missing template tag and preserve constructeurIds

- Fix missing <template> tag in product/create.vue causing build error
- Preserve constructeurIds when product already has constructeurs loaded

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Matthieu
2026-01-22 11:48:56 +01:00
parent 603c03ca00
commit 86d15faa01
2 changed files with 7 additions and 3 deletions

View File

@@ -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) {