KamoCRM

Guard against non-array responses on /platform/orgs

Fixkamo-internal
Shipped
24 ஏப்ரல், 2026 அன்று 12:22 AM UTC
Author
kamo
Commit
dd925f8

A non-array response (empty body, error envelope, or {data: [...]} wrapper) was landing in the orgs state and blowing up the render with 'e.map is not a function'. Gate the state update behind Array.isArray, tolerate a {data: [...]} envelope, and surface an inline error with a console.warn when the response shape is unexpected. Also null-guard org.groups and group.subscriptions inside the render.

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