Procházet zdrojové kódy

Fix 'Next' button disabled in Wizard Options

The 'Next' button in the Wizard Options interface is disabled after an
API call fails, and does not automatically re-enable even after the API
call eventually succeeds.
Sergiu Miclea před 3 roky
rodič
revize
7b4d59900d
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      src/components/smart/WizardPage/WizardPage.tsx

+ 2 - 0
src/components/smart/WizardPage/WizardPage.tsx

@@ -542,6 +542,8 @@ class WizardPage extends React.Component<Props, State> {
       return;
       return;
     }
     }
     try {
     try {
+      this.setState({ nextButtonDisabled: false });
+
       await providerStore.getOptionsValues({
       await providerStore.getOptionsValues({
         optionsType: type,
         optionsType: type,
         endpointId: endpoint.id,
         endpointId: endpoint.id,