Files
maskanx_cm_frontend/.env.production.example
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

7 lines
282 B
Bash

VITE_MASKANX_API_URL=https://api.maskanx.example.com
# 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=