From 35775eb6f08b5d85e0aa83c698806054bc8bbe70 Mon Sep 17 00:00:00 2001 From: Jeffrey Wong Date: Tue, 27 Jun 2023 11:25:00 -0400 Subject: [PATCH] Remove unused variables added for #1183 --- src/client/components/element-info/entity-info.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/components/element-info/entity-info.js b/src/client/components/element-info/entity-info.js index 81b43de0..91c7fc52 100644 --- a/src/client/components/element-info/entity-info.js +++ b/src/client/components/element-info/entity-info.js @@ -365,10 +365,10 @@ class EntityInfo extends DataComponent { let doc = p.document; let children = []; - const citation = doc.citation(); - const { pmid } = citation; + // const citation = doc.citation(); + // const { pmid } = citation; - const hasPubmedMetadata = pmid != null; + // const hasPubmedMetadata = pmid != null; let Loader = ({ loading = true }) => h('div.entity-info-matches-loading' + (loading ? '.entity-info-matches-loading-active' : ''), [ loading ? h('i.icon.icon-spinner') : h('i.material-icons', 'remove') @@ -612,7 +612,7 @@ class EntityInfo extends DataComponent { if( isComplex(s.element.type()) ){ const entityNames = s.element.participants().map(ppt => ppt.name()); children.push( h('div.entity-info-assoc', targetFromAssoc({ type, name, entityNames }, true )) ); - + if (hasRelatedPapers) { children.push( h('div.entity-info-reld-papers-title', `Recommended articles`) );