Skip to content

Commit 8ba94cb

Browse files
Apply suggestions from code review
Co-authored-by: Bernardo Belchior <[email protected]> Signed-off-by: Alexandre Fauquette <[email protected]>
1 parent 74caa0c commit 8ba94cb

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/x-charts/src/internals/commonNextFocusItem.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ export function createGetPreviousSeriesFocusedItem<
123123
>(compatibleSeriesTypes: Set<OutSeriesType>) {
124124
return function getPreviousSeriesFocusedItem(
125125
currentItem: SeriesItemIdentifier<InSeriesType> | null,
126-
127126
state: ChartState<[UseChartKeyboardNavigationSignature], []>,
128127
): ReturnedItem<OutSeriesType> {
129128
const processedSeries = selectorChartSeriesProcessed(state);

packages/x-charts/src/internals/seriesHasData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ export function seriesHasData(
1212
return false;
1313
}
1414
const data = series[type]?.series[seriesId]?.data;
15-
return data && data.length > 0;
15+
return data != null && data.length > 0;
1616
}

0 commit comments

Comments
 (0)