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

This commit is contained in:
Simon Legner 2024-01-06 19:18:17 +01:00
parent 5dd454c785
commit 86f533be0a

View file

@ -78,7 +78,7 @@ app.views.DocPicker = class DocPicker extends app.View {
} }
getSelectedDocs() { getSelectedDocs() {
return this.findAllByTag("input") return [...this.findAllByTag("input")]
.filter((input) => input?.checked) .filter((input) => input?.checked)
.map((input) => input.name); .map((input) => input.name);
} }