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
|
payload.prix = null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (component.value.structure) {
|
||||||
|
payload.structure = component.value.structure
|
||||||
|
}
|
||||||
|
|
||||||
saving.value = true
|
saving.value = true
|
||||||
try {
|
try {
|
||||||
const result = await updateComposant(component.value.id, payload)
|
const result = await updateComposant(component.value.id, payload)
|
||||||
|
|||||||
Reference in New Issue
Block a user