Fix undefined scan results
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-07-05 13:31:08 +03:00
parent fe1cf2f171
commit 9d5d49c9f2

View File

@@ -7,10 +7,12 @@ import Moment from 'react-moment'
class Table extends Component { class Table extends Component {
constructor ({ scanResults, t }) { constructor ({ scanResults, t }) {
super() super()
this.scanResults = scanResults && scanResults.map(row => ({ this.scanResults = scanResults
? scanResults.map(row => ({
...row, ...row,
id: row._id id: row._id
})) }))
: []
this.columns = [ this.columns = [
{ {
field: 'name', field: 'name',