Transmogrifier: Cleanup obsolete handling of `"contentMap": null`
This commit is contained in:
parent
558b421079
commit
799891d359
|
@ -336,10 +336,6 @@ def fix_tag(%{"tag" => %{} = tag} = object) do
|
|||
|
||||
def fix_tag(object), do: object
|
||||
|
||||
def fix_content_map(%{"contentMap" => nil} = object) do
|
||||
Map.drop(object, ["contentMap"])
|
||||
end
|
||||
|
||||
# content map usually only has one language so this will do for now.
|
||||
def fix_content_map(%{"contentMap" => content_map} = object) do
|
||||
content_groups = Map.to_list(content_map)
|
||||
|
|
Loading…
Reference in New Issue