mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 03:36:44 +08:00
Merge pull request #1167 from okriuchykhin/ok_SCI_2428
Fix search in repositories [SCI-2428]
This commit is contained in:
commit
815616aac1
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ class SearchController < ApplicationController
|
|||
res = counter[:repositories].values.detect do |rep|
|
||||
rep[:id] == @repository.id
|
||||
end
|
||||
return res[:count]
|
||||
return res[:count] if res && res[:count]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue