Error message when navigating to invalid dataset (like this /datasets/ALL_genotdfdfypes/gene-browser) was not shown always.
Loading query from Datasets tools was broken.
Aim
To fix the issues.
Implementation
to show error message boolean variable has to be undefined. When the dataset is incorrect its value in state is null and the variable which we expect to be undefined is set to null. To prevent that, if condition as added before setting the variable.
the method which is used to load queries reads the dataset id from state but the id can be stored in two ways - as string (dataset id only) when navigating from single view to dataset tools and as Dataset object when in Datasets. To prevent adding if condition, in single view we save Dataset object instead of an id only.
Background
Aim
To fix the issues.
Implementation