Skip to content

Commit

Permalink
Guard check
Browse files Browse the repository at this point in the history
  • Loading branch information
berzniz committed May 1, 2020
1 parent 6443828 commit cfaa6c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const createFileTree = (filter = EMPTY_FILTER) => {
title = getCurrentFileLocation(title)
return { title, href, parts: title.split('/') }
})
const count = fileInfo.filter(({ href }) => href.includes('#diff')).length
const count = fileInfo.filter(({ href }) => href && href.includes('#diff')).length
const tree = {
nodeLabel: '/',
list: [],
Expand Down

0 comments on commit cfaa6c5

Please sign in to comment.