Fix default state for archived repository [SCI-8435] (#5493)

This commit is contained in:
ajugo 2023-05-29 10:21:34 +02:00 committed by GitHub
parent 6ce9e41c2f
commit 8d70fcf322
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@
<%= render partial: 'shared/state_view_switch', locals: {
disabled: @repository.archived?,
switchable: true,
archived: params[:archived],
archived: params[:archived] || @repository.archived?,
active_url: repository_path(@repository),
archived_url: repository_path(@repository, archived: true),
} %>