Merge pull request #17318 from backstage/blam/scaffolder/next/fixes

scaffolder/next: validation feedback
This commit is contained in:
Ben Lambert
2023-04-11 16:48:59 +02:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
'@backstage/plugin-scaffolder-react': patch
---
Add indication that the validators are running
Add an indication that the validators are running when clicking `next` on each step of the form.
@@ -135,6 +135,8 @@ export const Stepper = (stepperProps: StepperProps) => {
}: {
formData?: Record<string, JsonValue>;
}) => {
// The validation should never throw, as the validators are wrapped in a try/catch.
// This makes it fine to set and unset state without try/catch.
setErrors(undefined);
setIsValidating(true);