From 50441e0cc563b7cbd2532b36fd4de5366f201e78 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Tue, 23 Dec 2025 12:39:58 +0000 Subject: [PATCH] Polish: Use strong types in CompleteStep --- .../src/components/SetupWizard/steps/CompleteStep.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend-modern/src/components/SetupWizard/steps/CompleteStep.tsx b/frontend-modern/src/components/SetupWizard/steps/CompleteStep.tsx index 59d972ea3..000a62b1b 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 = (props) => { const checkForAgents = async () => { try { - const state = await apiFetchJSON<{ nodes: any[], hosts: any[] }>('/api/state', { + const state = await apiFetchJSON('/api/state', { headers: { 'X-API-Token': props.state.apiToken, },