fix(subscribers): deduplicate members list in subscriber popover
Members array from workspace store can contain duplicate user_ids (e.g. user added to workspace twice). Filter by unique user_id before rendering to prevent React duplicate key warnings. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
b8fa71462a
commit
8a96aa698c
1 changed files with 1 additions and 1 deletions
|
|
@ -707,7 +707,7 @@ export function IssueDetail({ issueId, onDelete }: IssueDetailProps) {
|
|||
<CommandEmpty>No results found</CommandEmpty>
|
||||
{members.length > 0 && (
|
||||
<CommandGroup heading="Members">
|
||||
{members.map((m) => {
|
||||
{members.filter((m, i, arr) => arr.findIndex((x) => x.user_id === m.user_id) === i).map((m) => {
|
||||
const sub = subscribers.find((s) => s.user_type === "member" && s.user_id === m.user_id);
|
||||
const isSubbed = !!sub;
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue