Skip to content

"Show members" on a space tile doesn't open the sidebar #3574

Closed

Description

@AlexAndBear

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 is null (packages/web-app-files/src/components/SideBar/Shares/SharesPanel.vue:5), or guard canShare in packages/web-app-files/src/components/SideBar/Shares/SpaceMembers.vue:4 (also :151, :184).
  • Make packages/web-pkg/src/composables/shares/useCanShare.ts:11-25 null-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 SpaceMembers with resource injected as ref(null) and expect no throw; add a useCanShare spec for a null resource.
  • E2E: click button[aria-label="Show members"] on a tile, expect #app-sidebar to be visible and no pageerror.
Screenshot

Found during the mobile exploratory test (#3572), but it isn't mobile-specific.

Reproduction Steps

  1. Open Spaces (/files/spaces/projects?view-mode=resource-tiles) with a fresh page load, sidebar closed.
  2. 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.

Activity

  1. added a commit that references this issue on Oct 12, 2026
    291d6c8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions