Merge pull request #7861 from aignatov-bio/ai-sci-11003-fix-navigator-for-archived-task

Fix navigator for archived task [SCI-11003]
This commit is contained in:
Martin Artnik 2024-09-17 15:28:35 +02:00 committed by GitHub
commit d498bd8c0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -651,7 +651,7 @@ class MyModulesController < ApplicationController
@navigator = {
url: tree_navigator_my_module_path(@my_module),
archived: params[:view_mode] == 'archived',
archived: @my_module.archived_branch? || params[:view_mode] == 'archived',
id: @my_module.code
}
end