Hide experiment action row after archive/restore [SCI-8576] (#5519)

This commit is contained in:
ajugo 2023-05-31 09:38:09 +02:00 committed by GitHub
parent 46fc3d17e6
commit d3e11b0dde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,