From 9ef3e3bd9e7200c2d37bcbc923722c037e276754 Mon Sep 17 00:00:00 2001
From: david raistrick <1108844+keen99@users.noreply.github.com>
Date: Sat, 4 Jul 2026 22:28:41 -0400
Subject: [PATCH] feat(ui): filter already-added chars from participant
dropdown
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Character dropdown in add-participant picker excluded characters already
in the encounter. Prevents dup-add at the source — user can only select
chars not yet participating.
---
src/App.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/App.js b/src/App.js
index d0dbf68..2b9a170 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1352,7 +1352,7 @@ function ParticipantManager({ encounter, encounterPath, campaignCharacters, camp
className="mt-1 w-full px-3 py-2 bg-stone-700 border-stone-600 rounded text-white"
>
- {campaignCharacters.map(c => (
+ {campaignCharacters.filter(c => !participants.some(p => p.type === 'character' && p.originalCharacterId === c.id)).map(c => (