Merge pull request #4470 from janhq/fix/app-crashes-on-select-cloud-model-first-time-onboarding

fix: app crashes on select cloud model first time onboarding
This commit is contained in:
Louis 2025-01-16 20:54:43 +07:00 committed by GitHub
commit df6110b447
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 39 additions and 31 deletions

View File

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

View File

@ -298,7 +298,13 @@ const OnDeviceStarterScreen = ({ isShowStarterScreen }: Props) => {
key={rowIndex}
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(
remoteEngine as InferenceEngine
)