chore: skip splitting nil filter expr

This commit is contained in:
Zach Daniel 2024-07-12 19:12:55 -04:00
parent 11a43edae4
commit 9284c7a28a

View file

@ -3211,6 +3211,7 @@ defmodule AshPostgres.DataLayer do
@doc false
def split_and_statements(nil), do: []
def split_and_statements(%Ash.Filter{expression: nil}), do: []
def split_and_statements(other), do: do_split_statements(other)
def do_split_statements(%Ash.Filter{expression: expression}) do