mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-04 12:14:37 +08:00
Fix search in repositories [SCI-2428]
This commit is contained in:
parent
280a926554
commit
46d6accf78
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…
Add table
Reference in a new issue