From dd44d5dcf2f2fcb1ecfe502d38d25fc9200a886f Mon Sep 17 00:00:00 2001 From: pinetops Date: Mon, 2 Sep 2024 12:41:57 -0400 Subject: [PATCH] improvement: Add a case for handling mapsets in Filter.map (#1427) --- lib/ash/filter/filter.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ash/filter/filter.ex b/lib/ash/filter/filter.ex index 3f049536..6f75ed7a 100644 --- a/lib/ash/filter/filter.ex +++ b/lib/ash/filter/filter.ex @@ -1165,6 +1165,9 @@ defmodule Ash.Filter do value when is_list(value) -> Enum.map(value, &map(&1, func)) + %MapSet{} = value -> + MapSet.new(value, &map(&1, func)) + %BooleanExpression{left: left, right: right} = expr -> %{expr | left: map(left, func), right: map(right, func)}