KamoCRM

Guard against non-array responses on /platform/orgs

Fixkamo-internal
Ya
24 Aprili 2026, 00:22 UTC
Mwandishi
kamo
Ahadi ya
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.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila kitu kinaingia kwenye tovuti yako mwenyewe. Anza kwenye mpango wa bure na usome ukurasa huu tena katika mwezi mmoja.

Kuwa Huru MileleMtazamo wa bei