Browse Source

callbacks

pull/33/head
glitch4347 11 months ago
parent
commit
98e4e42fc4
  1. 2
      react/ChartwerkLinePod.tsx

2
react/ChartwerkLinePod.tsx

@ -50,7 +50,7 @@ export function ChartwerkLinePod(props: ChartwerkLinePodProps) {
useEffect(() => { useEffect(() => {
if(chart === null) { return; } if(chart === null) { return; }
let eventsCallbacks = _.cloneDeep(props.options.eventsCallbacks || {}); let eventsCallbacks = _.cloneDeep(props.options?.eventsCallbacks || {});
if (props.onZoomIn) { if (props.onZoomIn) {
eventsCallbacks.zoomIn = props.onZoomIn; eventsCallbacks.zoomIn = props.onZoomIn;
} }

Loading…
Cancel
Save