Skip to content

Commit 45227f2

Browse files
committed
Remove unused groupId prop from WorkGroupSection
1 parent f91e846 commit 45227f2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

apps/web/src/components/chat/MessagesTimeline.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,7 @@ function TimelineRowContent({ row }: { row: TimelineRow }) {
296296
data-message-id={row.kind === "message" ? row.message.id : undefined}
297297
data-message-role={row.kind === "message" ? row.message.role : undefined}
298298
>
299-
{row.kind === "work" && (
300-
<WorkGroupSection groupId={row.id} groupedEntries={row.groupedEntries} />
301-
)}
299+
{row.kind === "work" && <WorkGroupSection groupedEntries={row.groupedEntries} />}
302300

303301
{row.kind === "message" &&
304302
row.message.role === "user" &&
@@ -528,10 +526,8 @@ function LiveMessageMeta({
528526
/** Owns its own expand/collapse state so toggling re-renders only this row.
529527
* State resets on unmount which is fine — work groups start collapsed. */
530528
const WorkGroupSection = memo(function WorkGroupSection({
531-
groupId,
532529
groupedEntries,
533530
}: {
534-
groupId: string;
535531
groupedEntries: Extract<MessagesTimelineRow, { kind: "work" }>["groupedEntries"];
536532
}) {
537533
const [isExpanded, setIsExpanded] = useState(false);

0 commit comments

Comments
 (0)