Files
AFFAANhandClaude Opus 5 66cfa38076 fix(campaigns): preview and review steps showed empty values
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>
2026-08-02 19:45:59 +05:30

9 lines
364 B
Bash

# Leave the public URL empty to use the Vite /api proxy locally.
VITE_MASKANX_API_URL=
VITE_MASKANX_PROXY_TARGET=http://127.0.0.1:8088
# 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=