R08 · 🟠 Medium · bug
Error handler crashes on payloads without
status
What the code does
adapterError.errors[0].status.charAt() throws when status is missing, replacing the original error.
Where
app/controllers/marketing/campaigns/new.js
Suggested fix
Suggestion
Guard with optional chaining and default to
api-error.
Affected features
- Activity editor (loyalty mechanics, rules & targeting) — Marketing
- Proposal editor (content, coupon, push, AI images) — CMS
- Error presentation & API error mapping — Cross-cutting