Skip to content

Commit

Permalink
fix: master dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
vcellu committed Dec 1, 2022
1 parent 5ba31f0 commit 60c816d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/SimpleGrid.tsx
Expand Up @@ -132,7 +132,12 @@ const SimpleGrid: React.FC<SimpleGridProps> = ({
column.display = layout.qHyperCube.qDimensionInfo[column.dataColIdx].qFallbackTitle
}
} else {
column.label = layout.qHyperCube.qDimensionInfo[column.dataColIdx].qFallbackTitle;
const qDimInfo = layout.qHyperCube.qDimensionInfo[column.dataColIdx];
if(qDimInfo.qGroupFieldDefs?.[0].length > 0) {
column.label = qDimInfo.qGroupFieldDefs?.[0];
} else {
column.label = layout.qHyperCube.qDimensionInfo[column.dataColIdx].qFallbackTitle;
}
column.display = layout.qHyperCube.qDimensionInfo[column.dataColIdx].qFallbackTitle;
}
searchColumn({ searching: true, column });
Expand Down

0 comments on commit 60c816d

Please sign in to comment.