From aa88f540691f88ffa820ab2401ee3cbc42f96bc0 Mon Sep 17 00:00:00 2001 From: Jose Quintas Date: Wed, 15 May 2024 10:26:06 +0200 Subject: [PATCH] Fix getBarLabel return undefined --- packages/x-charts/src/BarChart/BarLabel/getBarLabel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/x-charts/src/BarChart/BarLabel/getBarLabel.ts b/packages/x-charts/src/BarChart/BarLabel/getBarLabel.ts index 8f88553340775..14e612a42f25c 100644 --- a/packages/x-charts/src/BarChart/BarLabel/getBarLabel.ts +++ b/packages/x-charts/src/BarChart/BarLabel/getBarLabel.ts @@ -8,7 +8,7 @@ export const getBarLabel = (options: { seriesId: SeriesId; height: number; width: number; -}): string | null => { +}): string | null | undefined => { const { barLabel, value, dataIndex, seriesId, height, width } = options; if (barLabel === 'value') {