fix: compatibility issues for currentStrategy.features is null (#17581)

This commit is contained in:
Good Wood 2025-04-08 09:24:42 +08:00 committed by GitHub
parent c8145ce581
commit 7b7ac7a495
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,7 +110,7 @@ const AgentPanel: FC<NodePanelProps<AgentNodeType>> = (props) => {
/> />
</Field> </Field>
<div className='px-4 py-2'> <div className='px-4 py-2'>
{isChatMode && currentStrategy?.features.includes(AgentFeature.HISTORY_MESSAGES) && ( {isChatMode && currentStrategy?.features?.includes(AgentFeature.HISTORY_MESSAGES) && (
<> <>
<Split /> <Split />
<MemoryConfig <MemoryConfig