chore: List.wrap .load call on calculations

This commit is contained in:
Zach Daniel 2024-06-03 19:30:10 -04:00
parent 8799191165
commit 3726f9b8b0

View file

@ -50,7 +50,7 @@ defmodule Ash.Actions.Helpers do
"""
end
def validate_calculation_load!(other, _), do: other
def validate_calculation_load!(other, _), do: List.wrap(other)
defp set_context(%Ash.Changeset{} = changeset, context),
do: Ash.Changeset.set_context(changeset, context)