VEuPathDB / web-monorepo

A monorepo that contains all frontend code for VEuPathDB websites
Apache License 2.0
2 stars 0 forks source link

EDA - lineplot numerator/denominator checkboxes get reset if you work very fast #1160

Closed bobular closed 3 months ago

bobular commented 3 months ago

To reproduce

This appears to be due to the visConfig coming back from the user database after a PATCH update. You may not see it on faster connections?

The useEffect in packages/libs/coreui/src/components/inputs/SelectList.tsx is presumably resetting the local state of the component because vizConfig.numeratorValues has changed (even though it has actually not changed from an empty array to an empty array?) Is there a rogue []? Yes there is. Fix to follow