Procházet zdrojové kódy

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

Simon Legner před 1 rokem
rodič
revize
86f533be0a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);
   }