Repository navigation
Description
Initial Checklist
- I understand this is a bug report and questions should be posted in the Community Discussions
- I searched issues and couldn’t find anything (or linked relevant results below)
Bug Description
The "Show members" button on a space tile in the Spaces list does nothing: the sidebar crashes while rendering the members panel.
The console shows TypeError: Cannot read properties of null (reading 'canShare') while rendering <SpaceMembers> in <SharesPanel>, followed by several Cannot read properties of null (reading 'parentNode') errors.
The members panel renders while the sidebar's injected resource is still null (resetSidebarResource). SpaceMembers.vue:4 passes it to canShare(...), and useCanShare.ts:24 calls resource.canShare(...) on null.
Other entry points work: space ⋮ → Members, the "N members" link in the space header, and Details → Members.
Proposal:
- Don't render
<space-members>while the resource isnull(packages/web-app-files/src/components/SideBar/Shares/SharesPanel.vue:5), or guardcanShareinpackages/web-app-files/src/components/SideBar/Shares/SpaceMembers.vue:4(also:151,:184). - Make
packages/web-pkg/src/composables/shares/useCanShare.ts:11-25null-safe. - Entry point:
packages/web-app-files/src/views/spaces/Projects.vue:442-445(openSidebarSharePanel).
How to test:
- Manual: fresh load of the Spaces list in tile view, sidebar closed → click the members icon on a tile → the sidebar opens on Members, no console errors.
- Unit: mount
SpaceMemberswithresourceinjected asref(null)and expect no throw; add auseCanSharespec for a null resource. - E2E: click
button[aria-label="Show members"]on a tile, expect#app-sidebarto be visible and nopageerror.
Found during the mobile exploratory test (#3572), but it isn't mobile-specific.
Reproduction Steps
- Open Spaces (
/files/spaces/projects?view-mode=resource-tiles) with a fresh page load, sidebar closed. - Click the members icon ("Show members") on any space tile.
Happens on desktop (e.g. 1400px) and on mobile.
Expected Outcome
The sidebar opens on the space's members panel.
Actual Outcome
Nothing opens. The console shows TypeError: Cannot read properties of null (reading 'canShare') from SpaceMembers.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix: wait for the sidebar resource before rendering the shares panel