mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
Merge pull request #6308 from wandji20/wb-SCI-9165
Fix counter issue in repository export modal [SCI-9165]
This commit is contained in:
commit
9966229324
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue