(fix)(supersonic-fe) fix add agent error

This commit is contained in:
williamhliu
2024-06-30 09:39:52 +08:00
parent 2b2ce7fa53
commit 1885bea3b8
2 changed files with 9 additions and 2 deletions

View File

@@ -277,7 +277,7 @@ const AgentForm: React.FC<Props> = ({ editAgent, onSaveAgent, onCreateToolBtnCli
{
label: '记忆管理',
key: 'memory',
children: <MemorySection agentId={editAgent!.id!} />,
children: <MemorySection agentId={editAgent?.id} />,
},
];