Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: slove the group add member checkbox not work (#11045)

Shinji-Li91d3f746c73f
diff --git a/src/app/[variants]/(main)/group/_layout/Sidebar/AddGroupMemberModal/AgentItem.tsx b/src/app/[variants]/(main)/group/_layout/Sidebar/AddGroupMemberModal/AgentItem.tsx
index 98cc7dd5bd7..5c6db36fc3c 100644
--- a/src/app/[variants]/(main)/group/_layout/Sidebar/AddGroupMemberModal/AgentItem.tsx
+++ b/src/app/[variants]/(main)/group/_layout/Sidebar/AddGroupMemberModal/AgentItem.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Avatar, Flexbox, Text , Checkbox } from '@lobehub/ui';
+import { Avatar, Checkbox, Flexbox, Text } from '@lobehub/ui';
import { useHover } from 'ahooks';
import { createStaticStyles } from 'antd-style';
import { X } from 'lucide-react';
@@ -101,7 +101,10 @@ const AgentItem = memo<AgentItemProps>(({ agent, defaultTitle, showCheckbox, sho
<Checkbox
checked={isSelected}
onChange={handleClick}
- onClick={(e) => e.stopPropagation()}
+ onClick={(e) => {
+ e.stopPropagation();
+ handleClick();
+ }}
/>
)}
<Avatar