Преглед изворни кода

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 пре 3 година
родитељ
комит
7b4d59900d
1 измењених фајлова са 2 додато и 0 уклоњено
  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;
     }
     try {
+      this.setState({ nextButtonDisabled: false });
+
       await providerStore.getOptionsValues({
         optionsType: type,
         endpointId: endpoint.id,