Skip to content

Commit

Permalink
Merge pull request #99 from openshift-cherrypick-robot/cherry-pick-97…
Browse files Browse the repository at this point in the history
…-to-release-4.14

[release-4.14] OU-318: consider all metric keys to display all results on dashboards tables
  • Loading branch information
openshift-merge-bot[bot] committed Jan 31, 2024
2 parents a0a1b5a + ce62af4 commit 6fb2081
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/dashboards/table.tsx
Expand Up @@ -106,8 +106,7 @@ const Table: React.FC<Props> = ({ customDataSource, panel, pollInterval, queries
if (response) {
const id = panel.targets[i].refId;
response.data.result.forEach(({ metric, value }) => {
const label = _.first(Object.keys(metric));
const tag = metric[label];
const tag = Object.values(metric).join('-');
if (!acc[tag]) {
acc[tag] = { ...metric };
}
Expand Down

0 comments on commit 6fb2081

Please sign in to comment.