This commit is contained in:
parent
8b445cec48
commit
f62d1fbf51
1 changed files with 4 additions and 1 deletions
|
|
@ -420,8 +420,11 @@ defmodule MvWeb.MemberLive.Index do
|
|||
|
||||
# Builds query parameters including field selection
|
||||
defp build_query_params(socket, base_params) do
|
||||
# Use query from base_params if provided, otherwise fall back to socket.assigns.query
|
||||
query_value = Map.get(base_params, "query") || socket.assigns.query || ""
|
||||
|
||||
base_params
|
||||
|> Map.put("query", socket.assigns.query || "")
|
||||
|> Map.put("query", query_value)
|
||||
|> maybe_add_field_selection(socket.assigns[:user_field_selection])
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue