From 71b254ec73ae492d722f8a720cda4e1de714e286 Mon Sep 17 00:00:00 2001 From: Hellen Date: Wed, 23 Oct 2024 17:59:44 +0300 Subject: [PATCH] fix(Cluster): handle cluster error in meta requests (#1525) --- src/containers/Cluster/Cluster.tsx | 7 ++++++- .../Cluster/ClusterDashboard/ClusterDashboard.scss | 6 ++++++ .../Cluster/ClusterDashboard/ClusterDashboard.tsx | 6 ++++++ src/types/api/cluster.ts | 1 + 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/containers/Cluster/Cluster.tsx b/src/containers/Cluster/Cluster.tsx index 23504308a..83b3ccf69 100644 --- a/src/containers/Cluster/Cluster.tsx +++ b/src/containers/Cluster/Cluster.tsx @@ -123,7 +123,12 @@ export function Cluster({
- +
; + } return (
diff --git a/src/types/api/cluster.ts b/src/types/api/cluster.ts index c30a25efe..544faf213 100644 --- a/src/types/api/cluster.ts +++ b/src/types/api/cluster.ts @@ -8,6 +8,7 @@ import type {TTraceCheck, TTraceView} from './trace'; * source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/protos/viewer.proto */ export interface TClusterInfoV1 { + error?: string; Name?: string; Overall?: EFlag; NodesTotal?: number;