diff --git a/src/renderer/components/+add-cluster/add-cluster.tsx b/src/renderer/components/+add-cluster/add-cluster.tsx index 626dd83c5b..b582cc99dc 100644 --- a/src/renderer/components/+add-cluster/add-cluster.tsx +++ b/src/renderer/components/+add-cluster/add-cluster.tsx @@ -39,9 +39,9 @@ interface Dependencies { function getContexts(config: KubeConfig): Map { return new Map( splitConfig(config) - .map(({ config, error }) => [config.currentContext, { + .map(({ config, validationResult }) => [config.currentContext, { config, - error: error?.toString(), + error: validationResult.error?.toString(), }]), ); }