mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 03:29:25 +01:00
fix(Open WebUI): install status indicator
This commit is contained in:
parent
5afc3a270a
commit
1b31c6f80d
|
|
@ -3,7 +3,7 @@ import { ServiceSlim } from '../../types/services'
|
|||
import api from '~/lib/api'
|
||||
|
||||
const useServiceInstalledStatus = (serviceName: string) => {
|
||||
const { data, isFetching } = useQuery<ServiceSlim[]>({
|
||||
const { data, isFetching } = useQuery<ServiceSlim[] | undefined>({
|
||||
queryKey: ['installed-services'],
|
||||
queryFn: () => api.listServices(),
|
||||
})
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import StyledModal from '~/components/StyledModal'
|
|||
export default function ModelsPage(props: {
|
||||
models: { availableModels: NomadOllamaModel[]; installedModels: OllamaModelListing[] }
|
||||
}) {
|
||||
const { isInstalled } = useServiceInstalledStatus('nomad_openwebui')
|
||||
const { isInstalled } = useServiceInstalledStatus('nomad_open_webui')
|
||||
const { addNotification } = useNotifications()
|
||||
const { openModal, closeAllModals } = useModals()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user