ordinarthur 94fdb37dc3
All checks were successful
Build & Deploy to K3s / build-and-deploy (push) Successful in 2m48s
fix(admin): render visual editor as ui field inside default form
The views.edit.default override replaced Payload's <Form> wrapper, so
useField had no form-state context — every field returned undefined
and setValue threw "N is not a function" during autosave.

Flatten the collection into a single ui field that renders
ProductPreviewEditor, with every real field marked admin.hidden:true.
The panel now lives inside Payload's default form, so useField gets
real values and autosave works.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 14:17:26 +02:00
..