mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 05:23:03 +12:00
fix: handle false
values properly when passed to flows
This commit is contained in:
parent
32620dfd52
commit
407b09b677
1 changed files with 7 additions and 1 deletions
|
@ -375,7 +375,13 @@ defmodule Ash.Flow.Template do
|
|||
end
|
||||
|
||||
defp do_handle_input_template({:_arg, name}, input) do
|
||||
{Map.get(input, name) || Map.get(input, to_string(name)), []}
|
||||
case Map.fetch(input, name) do
|
||||
{:ok, value} ->
|
||||
{value, []}
|
||||
|
||||
:error ->
|
||||
{Map.get(input, to_string(name)), []}
|
||||
end
|
||||
end
|
||||
|
||||
defp do_handle_input_template({:_result, step}, _input) do
|
||||
|
|
Loading…
Reference in a new issue