From 86f533be0a867fc73e398d0e5ce27b055fb4512c Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 6 Jan 2024 19:18:17 +0100 Subject: [PATCH] Fix this.findAllByTag(...).filter is not a function --- assets/javascripts/views/sidebar/doc_picker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }