mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
make it work
This commit is contained in:
parent
14fad134c8
commit
9204f7d34c
@ -114,11 +114,13 @@ class Numbers extends PureComponent {
|
||||
}
|
||||
})
|
||||
|
||||
const repo = response.data.map(item => {
|
||||
if (item.name === this.props.name) {
|
||||
return item
|
||||
}
|
||||
})
|
||||
const repo = response.data
|
||||
.map(item => {
|
||||
if (item.name === this.props.name) {
|
||||
return item
|
||||
}
|
||||
})
|
||||
.filter(n => n)
|
||||
|
||||
const { forks, stars } = repo
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user