Hide attendee number when only one person is listed
Conditionally render the attendee index span element only when the number of items in the list exceeds one. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 77cfe984-2c65-4152-bb7a-0df28274fe66 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 6a614115-a39d-4b50-ac9b-9d97294fc18d Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/c3c252e4-c83d-40ca-9fff-99a3ea60701e/77cfe984-2c65-4152-bb7a-0df28274fe66/fEDT27c Replit-Helium-Checkpoint-Created: true
This commit is contained in:
@@ -3307,12 +3307,14 @@ function AttendeeFlow({
|
||||
(editable ? " min-w-[3rem]" : "")
|
||||
}
|
||||
>
|
||||
<span
|
||||
data-testid={`em-attendee-index-${i}`}
|
||||
className="text-gray-500 me-1"
|
||||
>
|
||||
{displayIdx + 1}-
|
||||
</span>
|
||||
{items.length > 1 && (
|
||||
<span
|
||||
data-testid={`em-attendee-index-${i}`}
|
||||
className="text-gray-500 me-1"
|
||||
>
|
||||
{displayIdx + 1}-
|
||||
</span>
|
||||
)}
|
||||
{editable ? (
|
||||
<EditableCell
|
||||
value={a.name}
|
||||
|
||||
Reference in New Issue
Block a user