Skip to content

Commit 90da814

Browse files
Lucie LaporteLuzzzi
authored andcommitted
fix error 500 with no image
1 parent b94a69a commit 90da814

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sites_conformes/core/blocks/heros.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def clean(self, value):
207207
raise StructBlockValidationError(block_errors=errors)
208208

209209
if selected_background_type == "color":
210-
value["image"] = None
210+
value["image"] = {}
211211
elif selected_background_type == "image":
212212
value["background_color"] = None
213213

0 commit comments

Comments
 (0)