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
78 }78 }
79 79
80 getSelectedDocs() {80 getSelectedDocs() {
81 return this.findAllByTag("input")81 return [...this.findAllByTag("input")]
82 .filter((input) => input?.checked)82 .filter((input) => input?.checked)
83 .map((input) => input.name);83 .map((input) => input.name);
84 }84 }