FIX: blank search was broken

This commit is contained in:
Arpit Jalan 2016-03-18 23:37:20 +05:30
parent b1ac7491de
commit a7eec3da5c
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class SearchController < ApplicationController
search = Search.new(params[:q], search_args)
result = search.execute
result.find_user_data(guardian)
result.find_user_data(guardian) if result
serializer = serialize_data(result, GroupedSearchResultSerializer, result: result)