Skip to content

Commit

Permalink
accept empty content obj
Browse files Browse the repository at this point in the history
  • Loading branch information
sbilge committed Dec 11, 2024
1 parent 01eb95c commit c3fe24c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def transform_resource(
):
"""Apply the count content value transformation to each resource of a class."""
target_content = target_resource.get("content")
if not target_content:
if target_content is None:
raise EvitableTransformationError()

relation_target_ids = target_resource.get("relations", {}).get(relation_name)
Expand Down

0 comments on commit c3fe24c

Please sign in to comment.