Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to

### Fixed

- 🐛(frontend) prevent the share modal from crashing on team-based accesses
- 🐛(frontend) keep uploaded items usable while malware analysis runs
- 🐛(backend) stream export files from S3 without buffering

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ export const ItemShareModal = ({
const accessesByUserId = new Map<string, Access>();

data.forEach((access) => {
// Team-based accesses (access.team set, user null) grant a whole team, not a
// single user. This member list is keyed by user id and renders per-user
// rows, so skip them — otherwise `access.user.id` null-derefs and the whole
// modal crashes (a client-side exception).
if (access.team) {
return;
}
const existing = accessesByUserId.get(access.user.id);

if (!existing) {
Expand Down