diff --git a/react/ChartwerkLinePod.tsx b/react/ChartwerkLinePod.tsx index 9c2916f..dcae2d4 100644 --- a/react/ChartwerkLinePod.tsx +++ b/react/ChartwerkLinePod.tsx @@ -50,7 +50,7 @@ export function ChartwerkLinePod(props: ChartwerkLinePodProps) { useEffect(() => { if(chart === null) { return; } - let eventsCallbacks = _.cloneDeep(props.options.eventsCallbacks || {}); + let eventsCallbacks = _.cloneDeep(props.options?.eventsCallbacks || {}); if (props.onZoomIn) { eventsCallbacks.zoomIn = props.onZoomIn; }