mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
🐛 fix: fixed the agent group builder tools excaution edge case crash (#11735)
fix: fixed the agent group builder tools excaution edge case crash
This commit is contained in:
@@ -81,7 +81,7 @@ export const BatchCreateAgentsInspector = memo<
|
||||
{displayInfo && (
|
||||
<>
|
||||
<div className={styles.avatarGroup}>
|
||||
{displayInfo.displayAgents.map((agent, index) => (
|
||||
{displayInfo.displayAgents?.map((agent, index) => (
|
||||
<Avatar
|
||||
avatar={agent.avatar}
|
||||
key={index}
|
||||
|
||||
@@ -62,7 +62,7 @@ const CouncilList = memo<CouncilListProps>(({ members, displayMode, activeTab })
|
||||
minWidth: MIN_WIDTH * members.length + 32 + 32 * (members.length - 1),
|
||||
}}
|
||||
>
|
||||
{members.map((member, idx) => {
|
||||
{members?.map((member, idx) => {
|
||||
if (!member) return null;
|
||||
return (
|
||||
<Fragment key={member.id}>
|
||||
@@ -77,7 +77,7 @@ const CouncilList = memo<CouncilListProps>(({ members, displayMode, activeTab })
|
||||
>
|
||||
<CouncilMember index={idx} item={member} />
|
||||
</Flexbox>
|
||||
{idx < members.length - 1 && (
|
||||
{idx < members?.length - 1 && (
|
||||
<Divider
|
||||
dashed
|
||||
orientation={'vertical'}
|
||||
|
||||
Reference in New Issue
Block a user