From fa7e39c6a9eab07439ac5c8034b291fb91892131 Mon Sep 17 00:00:00 2001 From: artoscinote <85488244+artoscinote@users.noreply.github.com> Date: Fri, 9 Sep 2022 11:42:37 +0200 Subject: [PATCH] Fix experiment page infinite scroll [SCI-7160] (#4422) --- app/assets/javascripts/projects/show.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/projects/show.js b/app/assets/javascripts/projects/show.js index 70d578b17..4658cd7f4 100644 --- a/app/assets/javascripts/projects/show.js +++ b/app/assets/javascripts/projects/show.js @@ -115,6 +115,7 @@ placeholderTemplate: '#experimentPlaceholder', endOfListTemplate: '#experimentEndOfList', pageSize: pageSize, + lastPage: !data.next_page, customResponse: (response) => { $(response.cards_html).appendTo(cardsWrapper); },