Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Polish: Use strong types in CompleteStep

rcourtman3d8b7ce7cf9c
diff --git a/frontend-modern/src/components/SetupWizard/steps/CompleteStep.tsx b/frontend-modern/src/components/SetupWizard/steps/CompleteStep.tsx
index 59d972ea32..000a62b1b2 100644
--- a/frontend-modern/src/components/SetupWizard/steps/CompleteStep.tsx
+++ b/frontend-modern/src/components/SetupWizard/steps/CompleteStep.tsx
@@ -4,6 +4,7 @@ import { copyToClipboard } from '@/utils/clipboard';
import { logger } from '@/utils/logger';
import { apiFetchJSON } from '@/utils/apiClient';
import { getPulseBaseUrl } from '@/utils/url';
+import type { State } from '@/types/api';
import { SecurityAPI } from '@/api/security';
import { ProxmoxIcon } from '@/components/icons/ProxmoxIcon';
import type { WizardState } from '../SetupWizard';
@@ -38,7 +39,7 @@ export const CompleteStep: Component<CompleteStepProps> = (props) => {
const checkForAgents = async () => {
try {
- const state = await apiFetchJSON<{ nodes: any[], hosts: any[] }>('/api/state', {
+ const state = await apiFetchJSON<State>('/api/state', {
headers: {
'X-API-Token': props.state.apiToken,
},