Skip to content

Commit

Permalink
Fix for: Property 'children' does not exist error
Browse files Browse the repository at this point in the history
I'm getting the error shown in issue xanderdeseyn#166 , this change seems to fix it.
  • Loading branch information
bluephoton authored Jul 23, 2022
1 parent 1f2c9cd commit f5257ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export type ChartHandle = {
setViewportOrigin: (origin: XYValue) => void
}

const Chart: React.FC<Props> = React.memo(
const Chart: React.FC<React.PropsWithChildren<Props>> = React.memo(
React.forwardRef<ChartHandle, Props>((props, ref) => {
const { style, children, data = [], padding, xDomain, yDomain, viewport, disableGestures, disableTouch } = deepmerge(computeDefaultProps(props), props)
const { dimensions, onLayout } = useComponentDimensions()
Expand Down

0 comments on commit f5257ce

Please sign in to comment.