Skip to content

Commit 86f533b

Browse files
committed
Fix this.findAllByTag(...).filter is not a function
1 parent 5dd454c commit 86f533b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/javascripts/views/sidebar/doc_picker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ app.views.DocPicker = class DocPicker extends app.View {
7878
}
7979

8080
getSelectedDocs() {
81-
return this.findAllByTag("input")
81+
return [...this.findAllByTag("input")]
8282
.filter((input) => input?.checked)
8383
.map((input) => input.name);
8484
}

0 commit comments

Comments
 (0)