Skip to content

Commit

Permalink
fix missing twiddles in twiddles page
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav0 committed Mar 2, 2020
1 parent 4386631 commit eb0a663
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/components/saved-twiddles-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import Component from '@ember/component';
export default Component.extend({

filteredModel: filter('model', function(gist) {
return gist.get('files').map(function(file) {
let fileNames = gist.get('files').map(function(file) {
return file.get('fileName');
}).includes('twiddle.json');
});
return fileNames.any(fileName => /twiddle\\?.json/.test(fileName));
})
});

0 comments on commit eb0a663

Please sign in to comment.