diff --git a/lib/paper_trail/serializer.ex b/lib/paper_trail/serializer.ex index 13504d2d..3b002f2d 100644 --- a/lib/paper_trail/serializer.ex +++ b/lib/paper_trail/serializer.ex @@ -184,7 +184,7 @@ defmodule PaperTrail.Serializer do dumped_value = cond do match?({:array, _}, type) and Enum.any?(ignored_ecto_types(), & type == {:array, &1}) -> - Enum.map(value, &serialize_binary/1) + value && Enum.map(value, &serialize_binary/1) type in ignored_ecto_types() -> serialize_binary(value)