Fix lines plugin

This commit is contained in:
lowlighter
2020-09-17 22:30:16 +02:00
parent 08ad2d9bfa
commit 502a2f7003
2 changed files with 2 additions and 6 deletions

View File

@@ -9800,10 +9800,8 @@ __webpack_require__.d(__webpack_exports__, {
//Compute changed lines //Compute changed lines
response.map(({data:repository}) => { response.map(({data:repository}) => {
//Check if data are available //Check if data are available
if (!repository) if (!Array.isArray(repository))
return return
if (!repository.filter)
console.log(repository.filter, repository)
//Extract author //Extract author
const [contributor] = repository.filter(({author}) => author.login === login) const [contributor] = repository.filter(({author}) => author.login === login)
//Compute editions //Compute editions

View File

@@ -23,10 +23,8 @@
//Compute changed lines //Compute changed lines
response.map(({data:repository}) => { response.map(({data:repository}) => {
//Check if data are available //Check if data are available
if (!repository) if (!Array.isArray(repository))
return return
if (!repository.filter)
console.log(repository.filter, repository)
//Extract author //Extract author
const [contributor] = repository.filter(({author}) => author.login === login) const [contributor] = repository.filter(({author}) => author.login === login)
//Compute editions //Compute editions