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:
commit
df6110b447
@ -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">
|
||||||
|
|||||||
@ -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
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user