fix(piece) : include structure in composant edit PATCH payload for quantity persistence
This commit is contained in:
@@ -299,6 +299,10 @@ export function useComponentEdit(componentId: string) {
|
||||
payload.prix = null
|
||||
}
|
||||
|
||||
if (component.value.structure) {
|
||||
payload.structure = component.value.structure
|
||||
}
|
||||
|
||||
saving.value = true
|
||||
try {
|
||||
const result = await updateComposant(component.value.id, payload)
|
||||
|
||||
Reference in New Issue
Block a user