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

pull/16141/head^2
Good Wood 12 months ago committed by GitHub
parent c8145ce581
commit 7b7ac7a495
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save