Skip to content

Commit

Permalink
🎨 DRY accessing the submission steps
Browse files Browse the repository at this point in the history
This is available on the model too, so we can build on
top of that.
  • Loading branch information
sergei-maertens committed Jan 28, 2025
1 parent 68831c9 commit 73d451f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/openforms/submissions/rendering/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ def steps(self):
"""
Return the submission steps in the correct order.
"""
execution_state = self.submission.load_execution_state()
return execution_state.submission_steps
return self.submission.steps

@property
def has_children(self) -> bool:
Expand Down

0 comments on commit 73d451f

Please sign in to comment.