summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/finders/labels_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/labels_finder.rb b/app/finders/labels_finder.rb
index 28110be7097..5ee2e1ee6e8 100644
--- a/app/finders/labels_finder.rb
+++ b/app/finders/labels_finder.rb
@@ -33,7 +33,7 @@ class LabelsFinder < UnionFinder
end
def with_title(items)
- items = items.where(title: title) if title.present?
+ items = items.where(title: title) if title
items
end