Skip to content

Commit

Permalink
Merge pull request #1 from amplifiedai/amplifiedai/support-patch-on-m…
Browse files Browse the repository at this point in the history
…igrated-struct

Don't raise if a struct field does not exist
  • Loading branch information
simoncocking authored Jul 12, 2022
2 parents 5f4f169 + 0dad5b3 commit e70c463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/diff/patch.ex
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ defmodule ExAudit.Patch do
Map.delete(map, key)

{key, {:changed, changes}}, map ->
Map.update!(map, key, &patch(&1, changes))
Map.update(map, key, nil, &patch(&1, changes))
end)
end
end

0 comments on commit e70c463

Please sign in to comment.