Skip to content

Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.

TypeScript

fix(Open WebUI): install status indicator

Jake Turner1b31c6f80d99
diff --git a/admin/inertia/hooks/useServiceInstalledStatus.tsx b/admin/inertia/hooks/useServiceInstalledStatus.tsx
index b3768611..9e1c2cc1 100644
--- a/admin/inertia/hooks/useServiceInstalledStatus.tsx
+++ b/admin/inertia/hooks/useServiceInstalledStatus.tsx
@@ -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(),
})
diff --git a/admin/inertia/pages/settings/models.tsx b/admin/inertia/pages/settings/models.tsx
index 15b68b30..1ddf0d8f 100644
--- a/admin/inertia/pages/settings/models.tsx
+++ b/admin/inertia/pages/settings/models.tsx
@@ -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()