fix(spaces): parse members JSON in the dialog (#210) #229
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hotfix-members-json"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Live-dogfood hotfix. Opening a space's Members dialog threw
data.members is not iterableand rendered nothing.Cause:
refreshMembersdidconst data = await api(...)— butapi()returns the rawResponse, sodata.memberswasundefined. (GET /membersreturns200with{owner, members:[]}correctly; it was only the client that never parsed it.) This is a pre-existing bug in the members dialog, surfaced now that app-owned spaces make the dialog reachable everywhere (#210/#211).One-line fix:
await (await api(...)).json(). This also feeds my #217 owner/member-set validation (which readdata.owner/data.members).node --checkclean.Verified live: create-space works, feature-detect shows the Members button, error-surfacing showed the real JS error. Re-testing the full members flow after this deploys.