From addfbd298a4171c4088eddefec797250f41a4404 Mon Sep 17 00:00:00 2001 From: Hk-Gosuto Date: Wed, 6 Dec 2023 14:03:52 +0800 Subject: [PATCH] fix: fix bug --- app/components/chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 718364f23..e97f30e71 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -783,7 +783,7 @@ function _Chat() { } setIsLoading(true); chatStore - .onUserInput(userInput, userImage.base64) + .onUserInput(userInput, userImage?.base64) .then(() => setIsLoading(false)); localStorage.setItem(LAST_INPUT_KEY, userInput); localStorage.setItem(LAST_INPUT_IMAGE_KEY, userImage);