You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because the range is too large, endX and startX end up being equal, and the above function divides by 0. In that case, this function returns NaN and then when used as an index, leads to the Cannot read property 'date' of undefined
The text was updated successfully, but these errors were encountered:
Description
When the X range is too large, it throws the error
Minimal reproducible repo
https://github.com/Savinvadim1312/ReactNativeGraphTest
Code example:
Investigation
The problem seems to be inside the
getGraphDataIndex
function fromCreateGraphPath.ts
file:Because the range is too large,
endX
andstartX
end up being equal, and the above function divides by 0. In that case, this function returnsNaN
and then when used as an index, leads to theCannot read property 'date' of undefined
The text was updated successfully, but these errors were encountered: