Skip to content

Commit e224e97

Browse files
committed
chore: check for empty map in builtin notfound error
1 parent 5e082c5 commit e224e97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ash_json_api/error/not_found.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defmodule AshJsonApi.Error.NotFound do
2525
filter = error.filter
2626
resource = error.resource
2727

28-
if is_map(filter) || (Keyword.keyword?(filter) && filter not in [[], []]) do
28+
if is_map(filter) || (Keyword.keyword?(filter) && filter not in [[], %{}]) do
2929
filter =
3030
Enum.map_join(filter, ", ", fn {key, value} ->
3131
try do

0 commit comments

Comments
 (0)