Skip to content

Commit

Permalink
fix(ui): wrong topology resources list when switch cluster (#516)
Browse files Browse the repository at this point in the history
## What type of PR is this?
/kind bug

## What this PR does / why we need it:

Fix wrong topology resources list when switching cluster.

Co-authored-by: hai-tian <[email protected]>
  • Loading branch information
elliotxx and hai-tian authored Jun 24, 2024
1 parent 95fd553 commit 6c9bdf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/pages/insightDetail/group/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c9bdf8

Please sign in to comment.