Skip to content

Commit

Permalink
fix 4 defaultSelectedMeasure are selected when no defaultSelectedMeas…
Browse files Browse the repository at this point in the history
…ures are given
  • Loading branch information
kakao-tom-tom committed Sep 8, 2024
1 parent 1895141 commit 83e99b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/models/data-cube/data-cube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ export function getDefaultSplits(dataCube: ClientDataCube): Splits {
}

export function getDefaultSeries(dataCube: ClientDataCube): SeriesList {
if (dataCube.defaultSelectedMeasures) {
if (dataCube.defaultSelectedMeasures.length > 0) {
return SeriesList.fromMeasures(dataCube.defaultSelectedMeasures.map(name => findMeasureByName(dataCube.measures, name)));
}
const first4Measures = allMeasures(dataCube.measures).slice(0, 4);
Expand Down

0 comments on commit 83e99b1

Please sign in to comment.