From f128f592a5f1e10d7e33e9f912f10fae561a50c1 Mon Sep 17 00:00:00 2001 From: Noah Onyejese <129368606+noahonyejese@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:31:32 +0100 Subject: [PATCH] fix: Fixed Type issues --- app/charts/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/charts/index.ts b/app/charts/index.ts index f00711925..e50870cf9 100644 --- a/app/charts/index.ts +++ b/app/charts/index.ts @@ -65,6 +65,7 @@ import { Component, Dimension, DimensionType, + DimensionValue, GeoCoordinatesDimension, GeoShapesDimension, getCategoricalDimensions, @@ -622,7 +623,7 @@ export const getInitialConfig = ( dimensionValues: yComponentIds.map((id) => ({ value: id, label: id, - })), + })) as DimensionValue[], }), }, }, @@ -1626,7 +1627,7 @@ const chartConfigsAdjusters: ChartConfigsAdjusters = { dimensionValues: [leftMeasure.id, rightMeasureId].map((id) => ({ value: id, label: id, - })), + })) as DimensionValue[], }), }; }); @@ -1720,7 +1721,7 @@ const chartConfigsAdjusters: ChartConfigsAdjusters = { dimensionValues: [leftMeasure.id, lineComponentId].map((id) => ({ value: id, label: id, - })), + })) as DimensionValue[], }), }; });