Skip to content

Commit

Permalink
[charts] Fix left/bottomAxis not picking up default axis id (mui#12894)
Browse files Browse the repository at this point in the history
  • Loading branch information
JCQuintas committed Apr 24, 2024
1 parent bc93847 commit 5a39f7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/x-charts/src/ChartsAxis/ChartsAxis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ function ChartsAxis(props: ChartsAxisProps) {
// TODO: use for plotting line without ticks or any thing
// const drawingArea = React.useContext(DrawingContext);

const leftId = getAxisId(leftAxis === undefined ? yAxisIds[0] : leftAxis);
const bottomId = getAxisId(bottomAxis === undefined ? xAxisIds[0] : bottomAxis);
const leftId = getAxisId(leftAxis === undefined ? yAxisIds[0] : leftAxis, yAxisIds[0]);
const bottomId = getAxisId(bottomAxis === undefined ? xAxisIds[0] : bottomAxis, xAxisIds[0]);
const topId = getAxisId(topAxis, xAxisIds[0]);
const rightId = getAxisId(rightAxis, yAxisIds[0]);

Expand Down

0 comments on commit 5a39f7f

Please sign in to comment.