We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cdbb45 commit 571f611Copy full SHA for 571f611
assets/controllers/infinite_scroll_controller.js
@@ -26,7 +26,7 @@ export default class extends Controller {
26
let paginationElem = null;
27
if (cursorPaginationElement.length) {
28
console.log(cursorPaginationElement[0]);
29
- let button = cursorPaginationElement[0].getElementsByTagName('a');
+ const button = cursorPaginationElement[0].getElementsByTagName('a');
30
if (!button.length) {
31
throw new Error('No more pages');
32
}
0 commit comments