Skip to content

Commit

Permalink
fix(ensure_select): properly escape changeset.select (#1466)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaertschi authored Sep 18, 2024
1 parent cf9889a commit ac4bfcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ash/changeset/changeset.ex
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ defmodule Ash.Changeset do
%MapSet{} ->
%{
changeset
| select: MapSet.union(MapSet.new(changeset.select), fields) |> MapSet.to_list()
| select: MapSet.union(MapSet.new(changeset.select || []), fields) |> MapSet.to_list()
}

fields ->
Expand Down

0 comments on commit ac4bfcd

Please sign in to comment.