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
5e567352
Commit
5e567352
authored
Mar 13, 2019
by
Imran Salam
Browse files
add check to render TrackPanel child components only when data available
parent
28e3e0c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/ensembl/src/content/app/browser/track-panel/TrackPanel.tsx
...nsembl/src/content/app/browser/track-panel/TrackPanel.tsx
+2
-2
No files found.
src/ensembl/src/content/app/browser/track-panel/TrackPanel.tsx
View file @
5e567352
...
...
@@ -84,7 +84,7 @@ const TrackPanel: FunctionComponent<TrackPanelProps> = (
return
(
<
section
className
=
{
`
${
styles
.
trackPanel
}
reactSlideDrawer`
}
>
{
props
.
browserActivated
&&
(
{
props
.
browserActivated
&&
props
.
objectInfo
.
associated_object
?
(
<
Fragment
>
<
TrackPanelBar
closeTrackPanelModal
=
{
props
.
closeTrackPanelModal
}
...
...
@@ -122,7 +122,7 @@ const TrackPanel: FunctionComponent<TrackPanelProps> = (
</
Fragment
>
)
:
null
}
</
Fragment
>
)
}
)
:
null
}
</
section
>
);
};
...
...
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