Skip to content

Commit 5a9aa09

Browse files
madalinopreaMario Oprea
andauthored
fix: skip where when computed search conditions are empty (#544)
Co-authored-by: Mario Oprea <[email protected]>
1 parent 02f2644 commit 5a9aa09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/forest_liana/search_query_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def search_param
150150
conditions.join(' OR '),
151151
search_value_for_string: "%#{@search.downcase}%",
152152
search_value_for_uuid: @search.to_s
153-
)
153+
) unless conditions.empty?
154154
end
155155

156156
@records

0 commit comments

Comments
 (0)