Skip to content

Commit

Permalink
fix: Filters list
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Jun 28, 2024
1 parent 126bdb3 commit 4cf7dc5
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions app/components/chart-filters-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@ export const ChartFiltersList = ({
sourceType: dataSource.type,
sourceUrl: dataSource.url,
locale,
cubeFilters: chartConfig.cubes.map((cube) => ({
iri: cube.iri,
componentIris: extractChartConfigComponentIris({ chartConfig }),
filters: cubeQueryFilters.find((f) => f.iri === cube.iri)?.filters,
joinBy: cube.joinBy,
loadValues: true,
})),
cubeFilters: chartConfig.cubes.map((cube) => {
const f = cubeQueryFilters.find((f) => f.iri === cube.iri);
return {
iri: f?.iri ?? cube.iri,
componentIris: f?.componentIris,
filters: f?.filters,
joinBy: f?.joinBy,
loadValues: true,
};
}),
},
});
const allFilters = useMemo(() => {
Expand Down

0 comments on commit 4cf7dc5

Please sign in to comment.