Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core/pipeline): Pass Trigger validateFn to the trigger's Formik
A trigger type can register a 'validateFn'. This validateFn is run against its trigger data by the PipelineConfigValidator. If any errors are found, the little triangle shows up next to the save pipeline button. However, those same trigger validation errors didn't show up on the form fields themselves. This PR wires the validateFn into the Trigger's Formik validate prop. Validation is run twice (once by formik, once by PipelineConfigValidator). Not ideal, but acceptable.
- Loading branch information