Skip to content

Commit

Permalink
[Obs AI Assistant] Remove the navigate-to-conversation button when th…
Browse files Browse the repository at this point in the history
…ere are initial messages but no conversation (#198379)
  • Loading branch information
viduni94 committed Nov 28, 2024
1 parent 650c5ca commit 690a6ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/packages/kbn-ai-assistant/src/chat/chat_body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,9 @@ export function ChatBody({
saveTitle(newTitle);
}}
onToggleFlyoutPositionMode={onToggleFlyoutPositionMode}
navigateToConversation={navigateToConversation}
navigateToConversation={
initialMessages?.length && !initialConversationId ? undefined : navigateToConversation
}
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>
Expand Down

0 comments on commit 690a6ed

Please sign in to comment.