Skip to content

Commit

Permalink
Fix test-repo crash on non-existent folder. (decaporg#1444)
Browse files Browse the repository at this point in the history
  • Loading branch information
tech4him1 authored and erquhart committed Jun 16, 2018
1 parent bff387a commit d6ba94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/test-repo/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const getCursor = (collection, extension, entries, index) => {
};

const getFolderEntries = (folder, extension) => {
return Object.keys(window.repoFiles[folder])
return Object.keys(window.repoFiles[folder] || {})
.filter(path => path.endsWith(`.${ extension }`))
.map(path => ({
file: { path: `${ folder }/${ path }` },
Expand Down

0 comments on commit d6ba94a

Please sign in to comment.