Skip to content

Commit

Permalink
Fix Panel opening after Serotonin loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Natalia Smirnova committed Mar 5, 2024
1 parent d3018e7 commit 9d45966
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -6,6 +6,8 @@ import './InfoPanel.scss';
const InfoPanel = ({ complex }) => {
const { name, metadata } = complex[0];
const { classification, title, id } = metadata;

const isTitleProvided = title !== undefined;
const molecules = complex[0].getMolecules();

const statistics = [
Expand Down Expand Up @@ -48,7 +50,7 @@ const InfoPanel = ({ complex }) => {
{id || name || 'Unknown data'}
{classification && <small> / {classification}</small>}
</h1>
<p>{title.join(' ')}</p>
<p>{isTitleProvided ? title.join(' ') : ''}</p>
<Table>
<thead>
<tr>
Expand Down

0 comments on commit 9d45966

Please sign in to comment.