Skip to content

Commit

Permalink
Fix test-repo crash on non-existent folder. (#1444)
Browse files Browse the repository at this point in the history
  • Loading branch information
tech4him1 authored and erquhart committed Jun 15, 2018
1 parent b2a3ab2 commit 427ba7d
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 427ba7d

Please sign in to comment.