diff --git a/lib/builtin_changes/next_state.ex b/lib/builtin_changes/next_state.ex index 2e19157..034df22 100644 --- a/lib/builtin_changes/next_state.ex +++ b/lib/builtin_changes/next_state.ex @@ -13,7 +13,8 @@ defmodule AshStateMachine.BuiltinChanges.NextState do changeset.resource |> AshStateMachine.Info.state_machine_transitions(changeset.action.name) |> Enum.filter(fn - %{from: from} when is_list(from) -> current_state in from + %{from: from} when is_list(from) -> current_state in from || :* in from + %{from: :*} -> true %{from: from} -> current_state == from end) |> Enum.flat_map(fn