We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec3afdc commit ed3f6caCopy full SHA for ed3f6ca
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