History

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

Simon Legner committed 2 years ago

Commit 86f533b1 parent 5dd454c1 file · +1 −1Browse files

Showing the changes to assets/javascripts (1 of 1 file). Show all

Unified · Split

assets/javascripts/views/sidebar/doc_picker.js+1−1
@@ -78,7 +78,7 @@ app.views.DocPicker = class DocPicker extends app.View { · 77 unmodified lines
78 }78 }
79 79
80 getSelectedDocs() {80 getSelectedDocs() {
81 return this.findAllByTag("input")81 return [...this.findAllByTag("input")]
82 .filter((input) => input?.checked)82 .filter((input) => input?.checked)
83 .map((input) => input.name);83 .map((input) => input.name);
84 }84 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t