We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0db5479 commit ac761baCopy full SHA for ac761ba
app/javascript/js/controllers/action_controller.js
@@ -16,8 +16,10 @@ export default class extends Controller {
16
// Select all checkbox
17
this.selectedAllTarget.value = this.selectionOptions.itemSelectAllSelectedAllValue
18
19
- // Encrypted and encoded index query
20
- this.indexQueryTarget.value = this.selectionOptions.itemSelectAllSelectedAllQueryValue
+ // Encrypted and encoded index query when it is present (index view)
+ if (this.selectionOptions.itemSelectAllSelectedAllQueryValue) {
21
+ this.indexQueryTarget.value = this.selectionOptions.itemSelectAllSelectedAllQueryValue
22
+ }
23
24
if (this.noConfirmationValue) {
25
this.formTarget.requestSubmit()
0 commit comments