diff --git a/assets/javascripts/views/sidebar/doc_picker.js b/assets/javascripts/views/sidebar/doc_picker.js index 194e234a..ebe1cd87 100644 --- a/assets/javascripts/views/sidebar/doc_picker.js +++ b/assets/javascripts/views/sidebar/doc_picker.js @@ -78,7 +78,7 @@ app.views.DocPicker = class DocPicker extends app.View { } getSelectedDocs() { - return this.findAllByTag("input") + return [...this.findAllByTag("input")] .filter((input) => input?.checked) .map((input) => input.name); }