History

Fix this.findAllByTag(...).filter is not a function

Simon Legner committed 2 years ago

Commit 86f533b1 parent 5dd454c1 file · +1 −1Browse files

Unified · Split

assets/javascripts/views/sidebar/doc_picker.js+1−1
@@ -78,7 +78,7 @@ app.views.DocPicker = class DocPicker extends app.View { · 77 unmodified lines
7878 }
7979
8080 getSelectedDocs() {
81− return this.findAllByTag("input")
81+ return [...this.findAllByTag("input")]
8282 .filter((input) => input?.checked)
8383 .map((input) => input.name);
8484 }