fix: app crashes on select cloud model first time onboarding

This commit is contained in:
Louis 2025-01-16 19:55:29 +07:00
parent b9ea4baaa8
commit 1affa5a144
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2
2 changed files with 39 additions and 31 deletions

View File

@ -115,6 +115,8 @@ const RemoteEngineSettings = ({
} }
}, [engine]) }, [engine])
if (!engine) return null
return ( return (
<ScrollArea className="h-full w-full"> <ScrollArea className="h-full w-full">
<div className="block w-full px-4"> <div className="block w-full px-4">

View File

@ -298,7 +298,13 @@ const OnDeviceStarterScreen = ({ isShowStarterScreen }: Props) => {
key={rowIndex} key={rowIndex}
className="my-2 flex items-center gap-4 md:gap-10" className="my-2 flex items-center gap-4 md:gap-10"
> >
{row.map((remoteEngine) => { {row
.filter(
(e) =>
engines?.[e as InferenceEngine]?.[0]?.type ===
'remote'
)
.map((remoteEngine) => {
const engineLogo = getLogoEngine( const engineLogo = getLogoEngine(
remoteEngine as InferenceEngine remoteEngine as InferenceEngine
) )