Skip to content

Commit

Permalink
feat: reset selected envrironment, service name, framework on data so…
Browse files Browse the repository at this point in the history
…urce step mount (#3992)
  • Loading branch information
YounixM authored Nov 20, 2023
1 parent 36aced6 commit b3c0681
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export default function DataSource(): JSX.Element {
selectedFramework,
updateSelectedDataSource,
updateServiceName,
updateSelectedEnvironment,
updateSelectedFramework,
updateErrorDetails,
} = useOnboardingContext();

const [supportedDataSources, setSupportedDataSources] = useState<
Expand All @@ -53,6 +55,11 @@ export default function DataSource(): JSX.Element {

setSupportedDataSources(dataSource);
}

updateSelectedEnvironment('');
updateErrorDetails('');
updateServiceName('');
updateSelectedFramework('');
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

Expand Down

0 comments on commit b3c0681

Please sign in to comment.