summaryrefslogtreecommitdiff
path: root/client/table/file.table.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-06-28 00:59:20 -0400
committerJules Laplace <julescarbon@gmail.com>2019-06-28 00:59:20 -0400
commit3d2967573738154b4dd50bdd4a600aff42f276ae (patch)
tree38232c710b088316ae89d230260dedcfaf62e3f4 /client/table/file.table.js
parent642b6c412e920b0a41dafd78982ed363a747f99b (diff)
fix spinner
Diffstat (limited to 'client/table/file.table.js')
-rw-r--r--client/table/file.table.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/client/table/file.table.js b/client/table/file.table.js
index ff6c0af6..c880810a 100644
--- a/client/table/file.table.js
+++ b/client/table/file.table.js
@@ -2,12 +2,11 @@ import React, { Component } from 'react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import { ReactTabulator } from 'react-tabulator'
+import csv from 'parse-csv'
import { toArray, toTuples, domainFromUrl } from '../util'
import { Loader } from '../common'
-import csv from 'parse-csv'
-
class FileTable extends Component {
state = {
keys: [],
@@ -36,7 +35,7 @@ class FileTable extends Component {
getColumns(keys, data, fields) {
let titles = fields.length ? fields[0].split(', ') : keys
- let numberFields = []
+ // let numberFields = []
let columns = keys.map((field, i) => {
const title = titles[i] || field
if (field.match('url')) {
@@ -46,7 +45,7 @@ class FileTable extends Component {
title,
field: textField,
formatter: 'link',
- formatterParams: { target: "_blank", urlField: field, },
+ formatterParams: { target: "_blank", urlField: field },
sorter: 'string'
}
}
@@ -62,7 +61,6 @@ class FileTable extends Component {
}
render() {
- const { payload } = this.props
if (!this.state.data.length) {
return <Loader />
}