diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-03-30 15:31:00 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-03-30 15:31:00 +0100 |
| commit | 64f8ce44a92f6c538c0e9a4b06ea14b5a7babdca (patch) | |
| tree | 3fe8181ebd76f435457f9739d7178ab5c19d8a68 /scraper/client/paper/paper.verify.js | |
| parent | b92195675457de3efc1f9586fa8f89f1d50cd43c (diff) | |
agh
Diffstat (limited to 'scraper/client/paper/paper.verify.js')
| -rw-r--r-- | scraper/client/paper/paper.verify.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scraper/client/paper/paper.verify.js b/scraper/client/paper/paper.verify.js index 8e5268d0..1301239b 100644 --- a/scraper/client/paper/paper.verify.js +++ b/scraper/client/paper/paper.verify.js @@ -196,7 +196,7 @@ class PaperVerify extends Component { <div className='gray'> {citation.id} {citation.pdf.length ? ' | PDF: ' : ''} - {citation.pdf.map((pdf,i) => { + {citation.pdf.map((pdf, i) => { const domain = pdf.replace('www.','').split('/').slice(2,3)[0] || 'unknown' return ( <a @@ -210,8 +210,9 @@ class PaperVerify extends Component { </a> ) })} - {citation.doi.length ? ' | DOI: ' : ''} - {citation.doi.map((doi,i) => { + {(citation.doi && citation.doi.length) ? ' | DOI: ' : ''} + {(citation.doi || []).map((doi, i) => { + if (!doi) return null const domain = doi.replace('www.','').split('/').slice(2,3)[0] || 'unknown' return ( <a |
