Merge pull request #380 from HarlemSquirrel/extension-filter

Fix filtering by file extension
This commit is contained in:
Shawn Erquhart 2017-04-19 11:52:52 -04:00 committed by GitHub
commit 9c4d651c96

View File

@ -42,7 +42,7 @@ export default class GitHub {
entriesByFolder(collection, extension) {
return this.api.listFiles(collection.get("folder"))
.then(files => files.filter(fileExtension(file.name) === extension))
.then(files => files.filter(file => fileExtension(file.name) === extension))
.then(this.fetchFiles);
}