diff --git a/public/js/download.js b/public/js/download.js index 896eab9..c9ee07c 100644 --- a/public/js/download.js +++ b/public/js/download.js @@ -29,7 +29,7 @@ const download = () => { const ids = selected.map((i, e) => { return $(e).find('td').first().text(); }).get(); - const chapters = globalChapters.filter(c => ids.indexOf(c.id)); + const chapters = globalChapters.filter(c => ids.indexOf(c.id) >= 0); console.log(ids); $.ajax({ type: 'POST',