summaryrefslogtreecommitdiff
path: root/app/views/search
diff options
context:
space:
mode:
authorHeinrich Lee Yu <hleeyu@gmail.com>2018-12-21 19:44:37 +0800
committerHeinrich Lee Yu <hleeyu@gmail.com>2019-01-04 01:59:41 +0800
commit40f31486a8397c9142a0d5d0434b02d578aa8a67 (patch)
tree87e8684e20df494d5b555875166c77de8298b08b /app/views/search
parent725cd1367f8579e6c054c6cd2df42b934abfdc16 (diff)
downloadgitlab-ce-40f31486a8397c9142a0d5d0434b02d578aa8a67.tar.gz
Reduce counts in search_entries_info44353-improve-snippet-search-performance
Diffstat (limited to 'app/views/search')
-rw-r--r--app/views/search/_results.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/search/_results.html.haml b/app/views/search/_results.html.haml
index ab56f48ba4d..c4d52431d6e 100644
--- a/app/views/search/_results.html.haml
+++ b/app/views/search/_results.html.haml
@@ -1,4 +1,4 @@
-- if @search_objects.empty?
+- if @search_objects.to_a.empty?
= render partial: "search/results/empty"
- else
.row-content-block