From 83063b97105c7514d71ec2afaaf66def49116214 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 13 Feb 2019 18:05:35 +0100 Subject: listing citations, known and unknown --- scraper/client/common/header.component.js | 2 +- scraper/client/common/table.component.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scraper/client/common') diff --git a/scraper/client/common/header.component.js b/scraper/client/common/header.component.js index a14d925f..0cd67c76 100644 --- a/scraper/client/common/header.component.js +++ b/scraper/client/common/header.component.js @@ -9,8 +9,8 @@ import * as actions from '../actions' class Header extends Component { componentDidMount() { - this.props.actions.getInstitutions() this.props.actions.getPapers() + this.props.actions.getInstitutions() } pickPaper(e) { diff --git a/scraper/client/common/table.component.js b/scraper/client/common/table.component.js index f9be0669..96b62835 100644 --- a/scraper/client/common/table.component.js +++ b/scraper/client/common/table.component.js @@ -15,7 +15,7 @@ export function TableObject({ tag, object, order, summary }) { let keys = Object.keys(object) if (order) { const grouped = keys.reduce((a, b) => { - if (summary && !object[b].trim().length) { + if (summary && !(object[b].trim ? object[b].trim().length : object[b])) { return a } const index = order.indexOf(b) -- cgit v1.2.3-70-g09d2