Skip to content

fix: prevent org dashboard tRPC response transform failures#785

Merged
OmarMcAdam merged 1 commit intomainfrom
fix/org-member-spaces-empty-memberships
Feb 11, 2026
Merged

fix: prevent org dashboard tRPC response transform failures#785
OmarMcAdam merged 1 commit intomainfrom
fix/org-member-spaces-empty-memberships

Conversation

@OmarMcAdam
Copy link
Copy Markdown
Member

Summary

  • guard spaces.getOrgMemberSpaces against empty membership ids so the query never builds an inArray(..., []) filter.
  • return only org open spaces when a member has no direct/team space memberships and keep permission derivation behavior intact.
  • strip internal id from the mapped response payload while still using it internally to compute canSeeSettings.

Testing

  • not run locally in this environment (workspace dependencies/types are not fully installed).

@OmarMcAdam OmarMcAdam merged commit 9092eb8 into main Feb 11, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant