diff --git a/x-pack/platform/plugins/shared/onechat/public/application/hooks/use_conversation.ts b/x-pack/platform/plugins/shared/onechat/public/application/hooks/use_conversation.ts index 47f720adce503..5b135811a2a3c 100644 --- a/x-pack/platform/plugins/shared/onechat/public/application/hooks/use_conversation.ts +++ b/x-pack/platform/plugins/shared/onechat/public/application/hooks/use_conversation.ts @@ -69,7 +69,9 @@ const createActions = ({ }, setToolCallResult: ({ result, toolCallId }: { result: string; toolCallId: string }) => { setCurrentRound((round) => { - const step = round.steps.find((s) => isToolCallStep(s) && s.toolCallId === toolCallId); + const step = round.steps.find( + (s) => isToolCallStep(s) && s.toolCallId === toolCallId + ) as ToolCallStep; if (step) { step.result = result; }