Unverified Commit 9f956e73 authored by Manoj Pandian Sakthivel's avatar Manoj Pandian Sakthivel Committed by GitHub

Fix the view param (#331)

The view was always getting set as transcripts as the default value was defined in the wrong place.
parent 63796935
Pipeline #88785 passed with stages
in 7 minutes and 27 seconds
......@@ -176,8 +176,8 @@ const useGeneViewRouting = () => {
const { objectId: geneId } = parseFocusIdFromUrl(entityId);
const { search } = useLocation();
// TODO: discuss – is using URLSearchParams better than using the querystring package?
const view = new URLSearchParams(search).get('view') || 'transcripts';
const viewInRedux = useSelector(getGeneViewName);
const view = new URLSearchParams(search).get('view');
const viewInRedux = useSelector(getGeneViewName) || 'transcripts';
const previousGenomeId = usePrevious(genomeId); // genomeId during previous render
const selectedTabs = useSelector(getSelectedGeneViewTabs);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment