Merge pull request #6308 from wandji20/wb-SCI-9165

Fix counter issue in repository export modal [SCI-9165]
This commit is contained in:
Alex Kriuchykhin 2023-10-03 12:53:06 +02:00 committed by GitHub
commit 9966229324
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,7 @@ module Toolbars
@current_team = current_team
@repositories = Repository.readable_by_user(current_user)
.where(id: repository_ids)
.distinct
@repository = @repositories.first
@archived_state = @repositories.all.any?(&:archived?)
@single = @repositories.uniq.length == 1