Commit 5e567352 authored by Imran Salam's avatar Imran Salam
Browse files

add check to render TrackPanel child components only when data available

parent 28e3e0c6
......@@ -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>
);
};
......
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