Skip to content

Commit 7b7ac7a

Browse files
authored
fix: compatibility issues for currentStrategy.features is null (#17581)
1 parent c8145ce commit 7b7ac7a

File tree

1 file changed

+1
-1
lines changed
  • web/app/components/workflow/nodes/agent

1 file changed

+1
-1
lines changed

web/app/components/workflow/nodes/agent/panel.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const AgentPanel: FC<NodePanelProps<AgentNodeType>> = (props) => {
110110
/>
111111
</Field>
112112
<div className='px-4 py-2'>
113-
{isChatMode && currentStrategy?.features.includes(AgentFeature.HISTORY_MESSAGES) && (
113+
{isChatMode && currentStrategy?.features?.includes(AgentFeature.HISTORY_MESSAGES) && (
114114
<>
115115
<Split />
116116
<MemoryConfig

0 commit comments

Comments
 (0)