KamoCRM

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?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing