diff --git a/src/components/Repositories/Repository.jsx b/src/components/Repositories/Repository.jsx index ebabc8e3..0305cbed 100644 --- a/src/components/Repositories/Repository.jsx +++ b/src/components/Repositories/Repository.jsx @@ -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