Skip to content

Commit

Permalink
[APM] Agent configuration: Bug makes it possible to create invalid co…
Browse files Browse the repository at this point in the history
…nfigurations (#65508)

* reset settings when navigate to choose-settings-step page

* reset settings when navigate to choose-settings-step page

* reset settings when navigate to choose-settings-step page
  • Loading branch information
cauemarcondes committed May 7, 2020
1 parent ac61957 commit d28b154
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ export function AgentConfigurationCreateEdit({
<ServicePage
newConfig={newConfig}
setNewConfig={setNewConfig}
onClickNext={() => setPage('choose-settings-step')}
onClickNext={() => {
resetSettings();
setPage('choose-settings-step');
}}
/>
)}

Expand Down

0 comments on commit d28b154

Please sign in to comment.