Parcourir la source

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

Simon Legner il y a 1 an
Parent
commit
86f533be0a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      assets/javascripts/views/sidebar/doc_picker.js

+ 1 - 1
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);
   }