cthit / cthit/chalmers.it

Render issue when the same user is in a group multiple times

Open
#209 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
5
Forks
5
Avg merge
6h 45m
Merged PRs (30d)
3

Description

### 📝 Describe the bug

The site currently uses only the user ID as a member list ID when viewing a group. However, the same user can be added multiple times.

### 🔄 To Reproduce

1. Add the same user as multiple posts in Gamma
2. Go to /groups/
3. `Encountered two children with the same key`

### 📷 Screenshots

_No response_

### 💡 Additional context

This can be resolved if we use (user_id, post_id) as a list ID instead, as (user_id, group_id, post_id) has a unique constraint in Gamma.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.