Skip to content

Commit 07033a1

Browse files
committed
Added improvement for accounts page load
1 parent 4f6cc0b commit 07033a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/kaui/accounts_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Kaui
55
class AccountsController < Kaui::EngineController
66
def index
77
@search_query = params[:q]
8-
@advance_search_query = @search_query || request.query_string
8+
@advance_search_query = @search_query.presence || params[:advance_search_query].presence
99
if @search_query.present?
1010
account = Kaui::Account.list_or_search(@search_query, -1, 1, options_for_klient).first
1111
if account.nil?

0 commit comments

Comments
 (0)