Fix issue with failed error

This commit is contained in:
Roberto Jimenez Sanchez
2025-03-11 18:55:40 +01:00
parent 10f6488e4d
commit b9a6849fd7
@@ -237,8 +237,8 @@ function WizardContent({
const formData = getValues();
const spec = dataToSpec(formData.repository);
await submitData(spec);
// Only proceed if submission was successful
if (!saveRequest.isError) {
// Only proceed if submission was successful and there's no error
if (!saveRequest.isError && saveRequest.isSuccess) {
handleStatusChange(true);
handleNext();
}