Skip to content

Commit 1d76f8f

Browse files
committed
[*] Tests - Make the CI pass all tests
1 parent ebacb4d commit 1d76f8f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/services/forest_liana/resources_getter.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ def includes_for_serialization
7070
private
7171

7272
def get_fields_to_serialize
73-
@params[:fields][@collection_name].split(',').map { |name| name.to_sym }
73+
if @params[:fields] && @params[:fields][@collection_name]
74+
@params[:fields][@collection_name].split(',').map { |name| name.to_sym }
75+
else
76+
[]
77+
end
7478
end
7579

7680
def get_segment

0 commit comments

Comments
 (0)