mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: return proper value from short-circuit filter hydration
This commit is contained in:
parent
9c32eab87e
commit
7f1849ca5c
1 changed files with 2 additions and 2 deletions
|
@ -3539,7 +3539,7 @@ defmodule Ash.Filter do
|
||||||
case do_hydrate_refs(left, context) do
|
case do_hydrate_refs(left, context) do
|
||||||
{:ok, true} ->
|
{:ok, true} ->
|
||||||
if expr.op == :or do
|
if expr.op == :or do
|
||||||
true
|
{:ok, true}
|
||||||
else
|
else
|
||||||
do_hydrate_refs(right, context)
|
do_hydrate_refs(right, context)
|
||||||
end
|
end
|
||||||
|
@ -3555,7 +3555,7 @@ defmodule Ash.Filter do
|
||||||
case do_hydrate_refs(right, context) do
|
case do_hydrate_refs(right, context) do
|
||||||
{:ok, true} ->
|
{:ok, true} ->
|
||||||
if expr.op == :or do
|
if expr.op == :or do
|
||||||
true
|
{:ok, true}
|
||||||
else
|
else
|
||||||
{:ok, left}
|
{:ok, left}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue