diff --git a/app/pages/component/[id]/edit.vue b/app/pages/component/[id]/edit.vue index 0d6b897..7d751cb 100644 --- a/app/pages/component/[id]/edit.vue +++ b/app/pages/component/[id]/edit.vue @@ -166,9 +166,20 @@

Pièces choisies

diff --git a/app/shared/utils/structureSelectionUtils.ts b/app/shared/utils/structureSelectionUtils.ts index df97775..b1bbd98 100644 --- a/app/shared/utils/structureSelectionUtils.ts +++ b/app/shared/utils/structureSelectionUtils.ts @@ -3,6 +3,8 @@ export type SelectionEntry = { path: string requirementLabel: string resolvedName: string + quantity?: number + _definition?: Record } export type StructureSelectionResult = { @@ -59,6 +61,8 @@ export function collectStructureSelections( path: isNonEmptyString(entry?.path) ? entry.path : `${nodePath}:piece-${index + 1}`, requirementLabel: resolvers.resolvePieceLabel(definition), resolvedName: catalogPiece?.name || selectedId, + quantity: typeof definition?.quantity === 'number' ? definition.quantity : undefined, + _definition: definition, }) })