Skip to content

Commit 102e655

Browse files
committed
fix: types on index page
1 parent bd14579 commit 102e655

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎app/pages/chat/[id].vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ const handleSubmit = (e: Event) => {
9292
<UChatMessages
9393
:messages="chat.messages.map(message => ({
9494
...message,
95-
content: '' // FIXME: This is a hack to make the UChatMessages component work with aiSDK v5
95+
content: '', // FIXME: This is a hack to make the UChatMessages component work with aiSDK v5
96+
createdAt: new Date(message.createdAt) // FIXME: aiSDK v5 Type is a string instead of expected Date
9697
}))"
9798
:status="chat.status"
9899
:user="{
@@ -111,7 +112,7 @@ const handleSubmit = (e: Event) => {
111112
{
112113
label: 'Copy',
113114
icon: copied ? 'i-lucide-copy-check' : 'i-lucide-copy',
114-
onClick: copy
115+
onClick: (e, message) => copy(e, message as UIMessage)
115116
}
116117
]
117118
}"

0 commit comments

Comments
 (0)