Skip to content

Commit 54a1940

Browse files
committed
fix: heatmap lint failure id missing
1 parent f53dce6 commit 54a1940

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/pluggableWidgets/heatmap-chart-web/src/hooks/data.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ type LocalHeatMapData = {
3434
verticalAxisValue: AttributeValue;
3535
horizontalSortValue: string | Big | Date | undefined;
3636
verticalSortValue: string | Big | Date | undefined;
37+
id: string;
3738
};
3839

3940
function getUniqueValues<T>(values: T[]): T[] {
@@ -78,7 +79,8 @@ export const useHeatMapDataSeries = ({
7879
horizontalAxisValue: formatValueAttribute(horizontalAxisAttribute?.get(dataSourceItem).value),
7980
horizontalSortValue: horizontalSortAttribute?.get(dataSourceItem).value,
8081
verticalAxisValue: formatValueAttribute(verticalAxisAttribute?.get(dataSourceItem).value),
81-
verticalSortValue: verticalSortAttribute?.get(dataSourceItem).value
82+
verticalSortValue: verticalSortAttribute?.get(dataSourceItem).value,
83+
id: dataSourceItem.id
8284
}));
8385
setHeatMapData(dataSourceItems);
8486
}
@@ -113,7 +115,7 @@ export const useHeatMapDataSeries = ({
113115
executeAction(onClickAction?.get(selectedObjectItem));
114116
}
115117
},
116-
[onClickAction, heatmapChartData, seriesItemSelection]
118+
[onClickAction, heatmapChartData]
117119
);
118120

119121
return useMemo<HeatMapHookData>(() => {

packages/pluggableWidgets/heatmap-chart-web/typings/HeatMapProps.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @author Mendix Widgets Framework Team
55
*/
66
import { ComponentType, CSSProperties, ReactNode } from "react";
7-
import { ActionValue, DynamicValue, ListValue, ListAttributeValue, ListExpressionValue } from "mendix";
7+
import { DynamicValue, ListValue, ListActionValue, ListAttributeValue, ListExpressionValue } from "mendix";
88
import { Big } from "big.js";
99

1010
export type HorizontalSortOrderEnum = "asc" | "desc";
@@ -55,7 +55,7 @@ export interface HeatMapContainerProps {
5555
width: number;
5656
heightUnit: HeightUnitEnum;
5757
height: number;
58-
onClickAction?: ActionValue;
58+
onClickAction?: ListActionValue;
5959
tooltipHoverText?: ListExpressionValue<string>;
6060
enableThemeConfig: boolean;
6161
customLayout: string;

0 commit comments

Comments
 (0)