Unverified Commit d752d438 authored by Manoj Pandian Sakthivel's avatar Manoj Pandian Sakthivel Committed by GitHub
Browse files

Fix regular track config flash (#765)

parent c2627749
Pipeline #293471 passed with stages
in 5 minutes and 37 seconds
......@@ -52,6 +52,10 @@ export const BrowserTrackConfig = () => {
const trackType = getTrackType(selectedCog);
const { toggleApplyToAll } = useBrowserTrackConfig();
if (!trackType) {
return null;
}
const radioOptions: RadioOptions = [
{
value: 'this_track',
......
......@@ -130,6 +130,10 @@ export const saveTrackConfigsForGenome: ActionCreator<
// TODO: get proper data from the backend in order not to hack track id
export const getTrackType = (trackId: string) => {
if (!trackId) {
return null;
}
if (trackId.startsWith('gene')) {
return TrackType.GENE;
} else {
......
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