diff --git a/app/pages/home/Table.js b/app/pages/home/Table.js index f3249b1..b4715d7 100644 --- a/app/pages/home/Table.js +++ b/app/pages/home/Table.js @@ -7,10 +7,12 @@ import Moment from 'react-moment' class Table extends Component { constructor ({ scanResults, t }) { super() - this.scanResults = scanResults && scanResults.map(row => ({ - ...row, - id: row._id - })) + this.scanResults = scanResults + ? scanResults.map(row => ({ + ...row, + id: row._id + })) + : [] this.columns = [ { field: 'name',