Skip to content

Commit 67d328d

Browse files
committed
fix(mothership): clear message queue on chat switch while sending
1 parent 84ad165 commit 67d328d

File tree

1 file changed

+1
-0
lines changed
  • apps/sim/app/workspace/[workspaceId]/home/hooks

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ export function useChat(
320320
if (sendingRef.current) {
321321
chatIdRef.current = initialChatId
322322
setResolvedChatId(initialChatId)
323+
setMessageQueue([])
323324
return
324325
}
325326
chatIdRef.current = initialChatId

0 commit comments

Comments
 (0)