diff --git a/app/controllers/experiments_controller.rb b/app/controllers/experiments_controller.rb index f395d2c13..ea3115e33 100644 --- a/app/controllers/experiments_controller.rb +++ b/app/controllers/experiments_controller.rb @@ -89,7 +89,6 @@ class ExperimentsController < ApplicationController end def table - redirect_to module_archive_experiment_path(@experiment) if @experiment.archived_branch? view_state = @experiment.current_view_state(current_user) view_mode = params[:view_mode] || 'active' @current_sort = view_state.state.dig('my_modules', view_mode, 'sort') || 'atoz' diff --git a/app/views/experiments/_show_header.html.erb b/app/views/experiments/_show_header.html.erb index 2fc8486e8..dba699f86 100644 --- a/app/views/experiments/_show_header.html.erb +++ b/app/views/experiments/_show_header.html.erb @@ -50,7 +50,7 @@ <% end %> <% if (action_name == 'module_archive' || params[:view_mode] == 'archived') %> - <% unless @experiment.my_modules.active.count.zero? %> + <% unless @experiment.archived_branch? %>