diff --git a/app/assets/javascripts/projects/show.js b/app/assets/javascripts/projects/show.js index 01a79e9b0..5082cf909 100644 --- a/app/assets/javascripts/projects/show.js +++ b/app/assets/javascripts/projects/show.js @@ -17,8 +17,10 @@ let archivedOnToFilter; function updateExperimentsToolbar() { - window.actionToolbarComponent.fetchActions({ experiment_ids: selectedExperiments }); - window.actionToolbarComponent.setReloadCallback(refreshCurrentView); + if (window.actionToolbarComponent) { + window.actionToolbarComponent.fetchActions({ experiment_ids: selectedExperiments }); + window.actionToolbarComponent.setReloadCallback(refreshCurrentView); + } } function initProjectsViewModeSwitch() { @@ -105,6 +107,8 @@ updateExperimentsToolbar(); loadExperimentWorkflowImages(); + selectedExperiments.length = 0; + InfiniteScroll.init(cardsWrapper, { url: cardsUrl, eventTarget: window,