Javascript errors on overview page
Three points from this discussion from !297 (merged) should be addressed:
-
err.json is not a function I'm seeing on this branch:
Uncaught (in promise) TypeError: err.json is not a function at eval (webpack-internal:///./client/views/Overview.jsx:723)
Didn't try on master.
-
NaN is not a length I also see some more errors for the Overview page (the traceback is useless, just happens when the new state is set):
-
clicking on the histogram There is also another error in the overview when clicking anywhere on the histogram:
Overview.jsx:482 Uncaught TypeError: Cannot read property 'results' of undefined at onClick (Overview.jsx:482) at plotly-cartesian.js:366 at o.emit (plotly-cartesian.js:444) at HTMLDivElement.t.emit (plotly-cartesian.js:38363) at o (plotly-cartesian.js:22170) at Object.e.exports [as click] (plotly-cartesian.js:22175) at Object.Ot [as clickFn] (plotly-cartesian.js:56846) at HTMLDocument.M (plotly-cartesian.js:19579) onClick @ 18.index_bundle.js:1 (anonymous) @ 11.index_bundle.js:1 o.emit @ 11.index_bundle.js:1 t.emit @ plotly-cartesian.js:11767 o @ plotly-cartesian.js:11767 e.exports @ plotly-cartesian.js:11767 Ot @ plotly-cartesian.js:11767 M @ plotly-cartesian.js:11767
Edited by Adrià Labay