Skip to content

Commit c956577

Browse files
committed
address comments
1 parent 7d4f7a0 commit c956577

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/home/hooks

apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,10 +1902,7 @@ export function useChat(
19021902
content: streamingContentRef.current,
19031903
contentBlocks: streamingBlocksRef.current,
19041904
})
1905-
const seededMessages =
1906-
assistantMessage.content || assistantMessage.contentBlocks?.length
1907-
? [userMsg, assistantMessage]
1908-
: [userMsg]
1905+
const seededMessages = [userMsg, assistantMessage]
19091906
queryClient.setQueryData<TaskChatHistory>(taskKeys.detail(payloadChatId), {
19101907
id: payloadChatId,
19111908
title: null,

0 commit comments

Comments
 (0)