mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: Do not compare nil values in compare
validation (#1223)
Co-authored-by: Andreas Donig <git@innwiese.de>
This commit is contained in:
parent
c9a7ac7ba9
commit
7d10c781d4
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ defmodule Ash.Resource.Validation.Compare do
|
||||||
end
|
end
|
||||||
|
|
||||||
case value do
|
case value do
|
||||||
{:ok, value} ->
|
{:ok, value} when not is_nil(value) ->
|
||||||
opts
|
opts
|
||||||
|> Keyword.take([
|
|> Keyword.take([
|
||||||
:greater_than,
|
:greater_than,
|
||||||
|
|
Loading…
Reference in a new issue