summaryrefslogtreecommitdiff
path: root/scraper/client/common
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-02-13 18:05:35 +0100
committerJules Laplace <julescarbon@gmail.com>2019-02-13 18:05:35 +0100
commit83063b97105c7514d71ec2afaaf66def49116214 (patch)
treeb538a8b913cec7e563d23778a0cc4c523f559bda /scraper/client/common
parent8d17c7b8491f270ae1785921b0ae0d89f8290c7b (diff)
listing citations, known and unknown
Diffstat (limited to 'scraper/client/common')
-rw-r--r--scraper/client/common/header.component.js2
-rw-r--r--scraper/client/common/table.component.js2
2 files changed, 2 insertions, 2 deletions
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)