Skip to content

Commit

Permalink
Add selected measure even if it is hidden (#5709)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaHegde authored Sep 17, 2024
1 parent 39da7a3 commit 5541245
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ export function getDimensionTableAggregationRequestForTime(
}));

let apiSortName = dashboardState.leaderboardMeasureName;
if (!dashboardState.visibleMeasureKeys.has(apiSortName)) {
// if selected sort measure is not visible add it to list
measures.push({ name: apiSortName });
}
if (comparisonTimeRange) {
// insert beside the correct measure
measures.splice(
Expand Down

1 comment on commit 5541245

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.