Guard against non-array responses on /platform/orgs

Fixkamo-internal
Shipped
April 24, 2026 at 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?

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

Start Free ForeverView Pricing