Skip to content

Commit

Permalink
added innerHeight to props destructure
Browse files Browse the repository at this point in the history
`innerHeight` was being referenced in the guard at the top of the component, but since it wasn't destructured from props in the func param, it was undefined.
  • Loading branch information
brandonmp authored Feb 11, 2018
1 parent 918b905 commit 11d224e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/histogram/src/axis/YAxis.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default function YAxis({
tickLabelProps: passedTickLabelProps,
tickStyles,
tickValues,
innerHeight
}) {
if (!scale || !innerHeight) return null;
const Axis = orientation === 'left' ? AxisLeft : AxisRight;
Expand Down

0 comments on commit 11d224e

Please sign in to comment.