fix(custom-fields) : pass machineContextOnly through structure serialize/hydrate

- componentStructure: include machineContextOnly in save payload value object
- componentStructureHydrate: read machineContextOnly in hydrate and mapComponentCustomFields
- pieceProductStructure: include machineContextOnly in sanitize and hydrate

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-03 13:13:36 +02:00
parent a88e4a68fb
commit 7da78b3b3e
3 changed files with 12 additions and 1 deletions

View File

@@ -141,6 +141,7 @@ export const normalizeStructureForSave = (input: any): any => {
const value: Record<string, any> = {
type: field.type,
required: !!field.required,
machineContextOnly: !!field.machineContextOnly,
}
if (field.options && field.options.length) {
value.options = field.options