Merge pull request #380 from HarlemSquirrel/extension-filter
Fix filtering by file extension
This commit is contained in:
commit
9c4d651c96
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user