Skip to content

Commit

Permalink
Removed one check because property is private.
Browse files Browse the repository at this point in the history
  • Loading branch information
VladLasitsa committed Nov 20, 2020
1 parent 9e8cd49 commit 24e66c0
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,7 @@ export const TimeSeries = ({

useEffect(() => {
const updateCursor = ({ cursor }) => {
if (
chartRef.current &&
cursor &&
chartRef.current.chartStore.getState().chartId !== cursor.chartId
) {
if (chartRef.current && cursor) {
chartRef.current.dispatchExternalPointerEvent(cursor);
}
};
Expand Down

0 comments on commit 24e66c0

Please sign in to comment.