Skip to content

Commit ac82e9a

Browse files
fix: typescript errors in policy-chat streaming
1 parent 5800bc2 commit ac82e9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/components/policy-chat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export function PolicyChat() {
165165
// Add to stream lines
166166
setStreamLines((prev) => [
167167
...prev,
168-
{ type: "text", content: item.text, timestamp: Date.now() },
168+
{ type: "text", content: item.text!, timestamp: Date.now() },
169169
]);
170170
setMessages((prev) => {
171171
const newMessages = [...prev];
@@ -189,7 +189,7 @@ export function PolicyChat() {
189189
// Add tool use to stream lines
190190
setStreamLines((prev) => [
191191
...prev,
192-
{ type: "tool", content: item.name, timestamp: Date.now() },
192+
{ type: "tool", content: item.name!, timestamp: Date.now() },
193193
]);
194194
}
195195
}

0 commit comments

Comments
 (0)