Skip to content

Commit

Permalink
Small typo
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Potoms <[email protected]>
  • Loading branch information
Janpot authored Mar 15, 2024
1 parent a518d0a commit f2c14f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/x-charts/src/context/CartesianContextProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function CartesianContextProvider(props: CartesianContextProviderProps) {
};

const allXAxis: AxisConfig[] = [
...(xAxis?.map((axis, index) => ({ id: `deaultized-x-axis-${index}`, ...axis })) ?? []),
...(xAxis?.map((axis, index) => ({ id: `defaultized-x-axis-${index}`, ...axis })) ?? []),
// Allows to specify an axis with id=DEFAULT_X_AXIS_KEY
...(xAxis === undefined || xAxis.findIndex(({ id }) => id === DEFAULT_X_AXIS_KEY) === -1
? [{ id: DEFAULT_X_AXIS_KEY, scaleType: 'linear' } as AxisConfig]
Expand Down Expand Up @@ -238,7 +238,7 @@ function CartesianContextProvider(props: CartesianContextProviderProps) {
});

const allYAxis: AxisConfig[] = [
...(yAxis?.map((axis, index) => ({ id: `deaultized-y-axis-${index}`, ...axis })) ?? []),
...(yAxis?.map((axis, index) => ({ id: `defaultized-y-axis-${index}`, ...axis })) ?? []),
...(yAxis === undefined || yAxis.findIndex(({ id }) => id === DEFAULT_Y_AXIS_KEY) === -1
? [{ id: DEFAULT_Y_AXIS_KEY, scaleType: 'linear' } as AxisConfig]
: []),
Expand Down

0 comments on commit f2c14f8

Please sign in to comment.