From 4b97e374e75d5b709ba41711df20d97d0dd8329e Mon Sep 17 00:00:00 2001 From: sijinhui Date: Wed, 7 Aug 2024 23:42:03 +0800 Subject: [PATCH] fix little bug --- app/components/sidebar.tsx | 2 +- app/utils/chat.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/sidebar.tsx b/app/components/sidebar.tsx index 823e2e0d2..e18888ea5 100644 --- a/app/components/sidebar.tsx +++ b/app/components/sidebar.tsx @@ -319,7 +319,7 @@ export function SideBar(props: { className?: string }) { } onClose={() => setShowPluginSelector(false)} onSelection={(s) => { - navigate(s[0], { state: { fromHome: true } }); + navigate(s[0] as any, { state: { fromHome: true } }); }} /> )} diff --git a/app/utils/chat.ts b/app/utils/chat.ts index c4dfe4c6b..a85b7a5d7 100644 --- a/app/utils/chat.ts +++ b/app/utils/chat.ts @@ -145,7 +145,7 @@ export function uploadImage(file: Blob): Promise { body, mode: "cors", credentials: "include", - }) + } as RequestInit) .then((res) => res.json()) .then((res) => { console.log("res", res);