Skip to content

Commit

Permalink
Fix Panel opening after Serotonin loading (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
NataliaDSmirnova committed Mar 5, 2024
1 parent ef582a8 commit 5c9a92e
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 5c9a92e

Please sign in to comment.