Form.useWatch([], form) tracks getFieldsValue(), which returns {} on a step
with no mounted Form.Item. The Preview and Review steps have none, so on
entering Preview the creative memo recomputed to empty and previewed a blank
ad pointing at example.com, and the Review step rendered "-" for every field.
The submitted payload was always correct — submit() reads the preserved store
via getFieldsValue(true) — so this was a display and preview defect, not data
loss. Pass preserve: true so the watch tracks the whole store.
Also document VITE_META_AD_ACCOUNT_ID. Unset, it silently disables the
billing panel, the missing-payment-method warning, ad preview, and the
account-minimum budget check, with no diagnostic anywhere.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
8 lines
320 B
Bash
8 lines
320 B
Bash
VITE_MASKANX_API_URL=http://127.0.0.1:8089
|
|
VITE_MASKANX_PROXY_TARGET=http://127.0.0.1:8089
|
|
|
|
# Meta ad account used by the Campaigns page (act_<id>).
|
|
# Without it the billing panel, the "no payment method" warning, ad preview,
|
|
# and the account-minimum budget check are all silently unavailable.
|
|
VITE_META_AD_ACCOUNT_ID=
|