Unwrap {markets:[...]} envelope in Attach dialog

Fixkamo-internal
Shipped
April 24, 2026 at 12:43 AM UTC
Author
kamo
Commit
de88ff2

GET /api/security/commerce-markets returns { markets: [...], message: "..." }, not a bare array. The Attach Commerce Market dialog was treating the whole response as an array and blowing up with 'a.filter is not a function' (and then falsely reporting "No unattached Subscription markets available"). Read data.markets with an Array.isArray fallback so either shape works.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing