From 52fe8e8c0e483b8a11c41763a270b7c3a0650538 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Mon, 15 Sep 2025 21:58:24 +0700 Subject: [PATCH] fix: type imageurl --- web-app/src/containers/ThreadContent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-app/src/containers/ThreadContent.tsx b/web-app/src/containers/ThreadContent.tsx index ede897624..4a40eb635 100644 --- a/web-app/src/containers/ThreadContent.tsx +++ b/web-app/src/containers/ThreadContent.tsx @@ -276,7 +276,7 @@ export const ThreadContent = memo( item.content?.find((c) => c.type === 'text')?.text?.value || '' } - imageUrls={item.content?.filter((c) => c.type === 'image_url' && c.image_url?.url).map((c) => c.image_url!.url)} + imageUrls={item.content?.filter((c) => c.type === 'image_url' && c.image_url?.url).map((c) => c.image_url!.url).filter((url): url is string => url !== undefined) || []} onSave={(message, imageUrls) => { if (item.updateMessage) { item.updateMessage(item, message, imageUrls)