Browse Source

callbacks

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

2
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;
}

Loading…
Cancel
Save