Skip to content

Commit

Permalink
fix: fix metric disappeared issue (#5091)
Browse files Browse the repository at this point in the history
Signed-off-by: 이승연 <[email protected]>
  • Loading branch information
seungyeoneeee authored Nov 26, 2024
1 parent 3647e50 commit 24b1a2c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ const filteredMetricItems = ref<TreeNode[]>([]);
watch(() => props.metricItems, (updatedMetricItems) => {
filteredMetricItems.value = updatedMetricItems.filter(((metricItem) => {
if (metricItem.data.is_managed) {
return true;
}
if (storeState.isAdminMode) {
return metricItem.data.data.resource_group === 'DOMAIN';
}
Expand Down

0 comments on commit 24b1a2c

Please sign in to comment.