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);