From c9d6781db5a6befe6271765ee7e10c138a220339 Mon Sep 17 00:00:00 2001 From: hai-tian Date: Mon, 24 Jun 2024 19:37:13 +0800 Subject: [PATCH] fix: wrong topology resources list when switch cluster --- ui/src/pages/insightDetail/group/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/pages/insightDetail/group/index.tsx b/ui/src/pages/insightDetail/group/index.tsx index 7c9a3a25..9b0280f6 100644 --- a/ui/src/pages/insightDetail/group/index.tsx +++ b/ui/src/pages/insightDetail/group/index.tsx @@ -76,7 +76,7 @@ const ClusterDetail = () => { const kindTmp = item?.id?.split('.') const len = kindTmp?.length const lastKindTmp = kindTmp?.[len - 1] - if (lastKindTmp === 'Pod') { + if (lastKindTmp === (tableName || 'Pod')) { return true } else { return false