Skip to content

Commit 7e56cfb

Browse files
committed
fix: remove unused variables in dataPointSelection event handler for cleaner code
1 parent 98fdeb9 commit 7e56cfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/block/node-pod-list.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export default function NodePodList({ pods, node }: NodePodListProps) {
199199
type: "treemap",
200200
height: 400,
201201
events: {
202-
dataPointSelection: (event, chartContext, { dataPointIndex }) => {
202+
dataPointSelection: (_event, _chartContext, { dataPointIndex }) => {
203203
const selectedData = chartData[dataPointIndex];
204204
if (
205205
selectedData &&
@@ -255,7 +255,7 @@ export default function NodePodList({ pods, node }: NodePodListProps) {
255255
return "#a7f3d0";
256256
}
257257
}),
258-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
258+
259259
tooltip: {
260260
custom: function ({ dataPointIndex }) {
261261
const data = chartData[dataPointIndex];

0 commit comments

Comments
 (0)