Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-web
ensembl-client
Commits
d752d438
Unverified
Commit
d752d438
authored
Jun 28, 2022
by
Manoj Pandian Sakthivel
Committed by
GitHub
Jun 28, 2022
Browse files
Fix regular track config flash (#765)
parent
c2627749
Pipeline
#293471
passed with stages
in 5 minutes and 37 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
src/content/app/genome-browser/components/browser-track-config/BrowserTrackConfig.tsx
...er/components/browser-track-config/BrowserTrackConfig.tsx
+4
-0
src/content/app/genome-browser/state/track-config/trackConfigSlice.ts
...app/genome-browser/state/track-config/trackConfigSlice.ts
+4
-0
No files found.
src/content/app/genome-browser/components/browser-track-config/BrowserTrackConfig.tsx
View file @
d752d438
...
...
@@ -52,6 +52,10 @@ export const BrowserTrackConfig = () => {
const
trackType
=
getTrackType
(
selectedCog
);
const
{
toggleApplyToAll
}
=
useBrowserTrackConfig
();
if
(
!
trackType
)
{
return
null
;
}
const
radioOptions
:
RadioOptions
=
[
{
value
:
'
this_track
'
,
...
...
src/content/app/genome-browser/state/track-config/trackConfigSlice.ts
View file @
d752d438
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment