fix: Do not compare nil values in compare validation (#1223)

Co-authored-by: Andreas Donig <git@innwiese.de>
This commit is contained in:
Andreas Donig 2024-06-05 15:23:33 +02:00 committed by GitHub
parent c9a7ac7ba9
commit 7d10c781d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,