From 00db7e705d4dbeeac2ffb7c4893cd9299fe5b04c Mon Sep 17 00:00:00 2001 From: Michael Siega Date: Mon, 21 Sep 2026 11:37:14 +0200 Subject: [PATCH] fix(editor): Derive the debug info instance type from the shared schema (no-changelog) Co-Authored-By: Claude Fable 5.1 --- .../editor-ui/src/app/composables/useDebugInfo.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/frontend/editor-ui/src/app/composables/useDebugInfo.ts b/packages/frontend/editor-ui/src/app/composables/useDebugInfo.ts index 96105947b4a..3907536e0ae 100644 --- a/packages/frontend/editor-ui/src/app/composables/useDebugInfo.ts +++ b/packages/frontend/editor-ui/src/app/composables/useDebugInfo.ts @@ -2,15 +2,13 @@ import { useRootStore } from '@n8n/stores/useRootStore'; import { useSettingsStore } from '@n8n/stores/settings.store'; import { useInstanceRegistryStore } from '@n8n/frontend-module-instance-registry'; import { useDeviceSupport } from '@n8n/composables/useDeviceSupport'; +import type { InstanceRegistration } from '@n8n/api-types'; import type { WorkflowSettings } from 'n8n-workflow'; -type ClusterInstanceSummary = { - instanceKey: string; - hostId: string; - instanceType: 'main' | 'worker' | 'webhook'; - instanceRole: 'leader' | 'follower' | 'unset'; - version: string; -}; +type ClusterInstanceSummary = Pick< + InstanceRegistration, + 'instanceKey' | 'hostId' | 'instanceType' | 'instanceRole' | 'version' +>; type ClusterCheckSummary = { check: string;