Conversation
Treat controlValues === undefined as the only case to keep existing values (so null is now accepted) in updateStepInWorkflow. In the custom step controls component, import and use updateStepInWorkflow and workflow.update; when restoring defaults reset the form and update the workflow with controlValues: null (instead of calling saveForm). Add a guard for missing workflow/step and visually disable the JSON form when the controls are not overridden.
✅ Deploy Preview for dashboard-v2-novu-staging ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
✅ PR title automatically updated! I found the Linear ticket ID Updated title: |
WalkthroughThis change refactors how the workflow editor handles step control value updates. The 🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Treat controlValues === undefined as the only case to keep existing values (so null is now accepted) in updateStepInWorkflow. In the custom step controls component, import and use updateStepInWorkflow and workflow.update; when restoring defaults reset the form and update the workflow with controlValues: null (instead of calling saveForm). Add a guard for missing workflow/step and visually disable the JSON form when the controls are not overridden.
What changed? Why was the change needed?
Screenshots
Expand for optional sections
Related enterprise PR
Special notes for your reviewer