mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Fix this.findAllByTag(...).filter is not a function
This commit is contained in:
parent
5dd454c785
commit
86f533be0a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue