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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user