fix: app crashes on select cloud model first time onboarding
This commit is contained in:
parent
b9ea4baaa8
commit
1affa5a144
@ -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">
|
||||
|
||||
@ -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
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user