Fix lines plugin
This commit is contained in:
@@ -23,10 +23,8 @@
|
||||
//Compute changed lines
|
||||
response.map(({data:repository}) => {
|
||||
//Check if data are available
|
||||
if (!repository)
|
||||
if (!Array.isArray(repository))
|
||||
return
|
||||
if (!repository.filter)
|
||||
console.log(repository.filter, repository)
|
||||
//Extract author
|
||||
const [contributor] = repository.filter(({author}) => author.login === login)
|
||||
//Compute editions
|
||||
|
||||
Reference in New Issue
Block a user