fix(Open WebUI): install status indicator

This commit is contained in:
Jake Turner 2026-01-24 23:36:35 +00:00 committed by Jake Turner
parent 5afc3a270a
commit 1b31c6f80d
2 changed files with 2 additions and 2 deletions

View File

@ -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(),
})

View File

@ -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()