Skip to content

Commit 4b7b983

Browse files
daniel-lxsmrubens
authored andcommitted
fix: add id field when creating queued messages
- Generate unique id using timestamp when adding messages to queue - Fixes TypeScript error after moving QueuedMessage interface
1 parent 2d7174b commit 4b7b983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
554554

555555
if (text || images.length > 0) {
556556
if (sendingDisabled && !fromQueue) {
557-
setMessageQueue((prev) => [...prev, { text, images }])
557+
setMessageQueue((prev) => [...prev, { id: Date.now().toString(), text, images }])
558558
setInputValue("")
559559
setSelectedImages([])
560560
return

0 commit comments

Comments
 (0)