Skip to content

Commit

Permalink
chore: Remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Jan 29, 2024
1 parent 8b93033 commit 8aa3aee
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions app/charts/shared/chart-helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,42 +119,6 @@ export const useQueryFilters = ({
]);
};

// Handle correctly when improving performance of data fetching!
// const getComponentIris = (
// cubeIri: string,
// options: {
// dimensions: Dimension[];
// measures: Measure[];
// }
// ) => {
// const { dimensions, measures } = options;

// if (dimensions.length === 0 && measures.length === 0) {
// return;
// }

// const filteredDimensionIris: string[] = [];

// for (const dimension of dimensions) {
// if (dimension.isJoinByDimension) {
// if (dimension.originalIris.some((d) => d.cubeIri === cubeIri)) {
// filteredDimensionIris.push(
// ...dimension.originalIris.map((d) => d.dimensionIri)
// );
// }
// } else {
// if (dimension.cubeIri === cubeIri) {
// filteredDimensionIris.push(dimension.iri);
// }
// }
// }

// return [
// ...filteredDimensionIris,
// ...measures.filter((d) => d.cubeIri === cubeIri).map((d) => d.iri),
// ];
// };

type IFKey = keyof NonNullable<InteractiveFiltersConfig>;

export const getChartConfigFilterComponentIris = ({ cubes }: ChartConfig) => {
Expand Down

0 comments on commit 8aa3aee

Please sign in to comment.