Skip to content

Commit

Permalink
chore: fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan committed Jan 13, 2025
1 parent 27a2b63 commit 7186ead
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/containers/ModelDropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const ModelDropdown = ({
setShowEngineListModel((prev) => [
...prev,
...engineList
.filter((x) => (x.engine.api_key?.length ?? 0) > 0)
.filter((x) => (x.engine?.api_key?.length ?? 0) > 0)
.map((e) => e.name),
])
}, [setShowEngineListModel, engineList])
Expand Down
4 changes: 1 addition & 3 deletions web/screens/Settings/Engines/RemoteEngineSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@ import { ScrollArea, Input, TextArea } from '@janhq/joi'

import { useAtomValue } from 'jotai'

import { set } from 'lodash'
import { ChevronRight } from 'lucide-react'
import { twMerge } from 'tailwind-merge'

import { updateEngine, useGetEngines } from '@/hooks/useEngineManagement'

import { downloadedModelsAtom } from '@/helpers/atoms/Model.atom'

import { set } from 'lodash'
import { url } from 'inspector'

const RemoteEngineSettings = ({
engine: name,
}: {
Expand Down

0 comments on commit 7186ead

Please sign in to comment.