Fix undefined scan results
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -7,10 +7,12 @@ import Moment from 'react-moment'
|
||||
class Table extends Component {
|
||||
constructor ({ scanResults, t }) {
|
||||
super()
|
||||
this.scanResults = scanResults && scanResults.map(row => ({
|
||||
this.scanResults = scanResults
|
||||
? scanResults.map(row => ({
|
||||
...row,
|
||||
id: row._id
|
||||
}))
|
||||
: []
|
||||
this.columns = [
|
||||
{
|
||||
field: 'name',
|
||||
|
||||
Reference in New Issue
Block a user