Skip to content

Commit c93c10b

Browse files
committed
Add typegaurd for blob
1 parent 452d8dd commit c93c10b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/src/components/ToolResults.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ const ToolResults = ({
205205
/>
206206
)}
207207
{item.type === "resource" &&
208-
(item.resource?.mimeType?.startsWith("audio/") ? (
208+
(item.resource?.mimeType?.startsWith("audio/") &&
209+
"blob" in item.resource ? (
209210
<audio
210211
controls
211212
src={`data:${item.resource.mimeType};base64,${item.resource.blob}`}

0 commit comments

Comments
 (0)