From 524c8ff283efb4f4268e0974c1c07c41479c64a5 Mon Sep 17 00:00:00 2001 From: Nicolas Takashi Date: Fri, 17 Jan 2025 09:35:15 +0000 Subject: [PATCH] [FIX] dashboard usage table Signed-off-by: Nicolas Takashi --- ui/src/fetch/index.ts | 2 +- ui/src/pages/metrics/detail.tsx | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ui/src/fetch/index.ts b/ui/src/fetch/index.ts index 2ee0e32..d7ca1d2 100644 --- a/ui/src/fetch/index.ts +++ b/ui/src/fetch/index.ts @@ -106,7 +106,7 @@ export interface RuleUsage { export interface DashboardUsage { id: string; serie: string; - name: string; + title: string; url: string; } diff --git a/ui/src/pages/metrics/detail.tsx b/ui/src/pages/metrics/detail.tsx index 893652e..7d4236c 100644 --- a/ui/src/pages/metrics/detail.tsx +++ b/ui/src/pages/metrics/detail.tsx @@ -277,16 +277,15 @@ const DashboardTable: React.FC = ({ dashboards, currentPage - Name + Name {dashboards?.data?.map((dashboard, index) => ( - {dashboard.id} - - {dashboard.name} + + {dashboard.title}