Skip to content

Commit

Permalink
🐛 [#4659] Only fix the defaultValue if its defined
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmolen committed Oct 14, 2024
1 parent 8f47a26 commit 37bfc2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/openforms/formio/migration_converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ def rename_identifier_role_authorizee(component: Component) -> bool:


def fix_empty_default_value(component: Component) -> bool:
if "defaultValue" not in component:
return False

default_value = component.get("defaultValue")
changed = False

Expand Down

0 comments on commit 37bfc2f

Please sign in to comment.