mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-16 07:15:51 +08:00
feat: reset selected envrironment, service name, framework on data source step mount (#3992)
This commit is contained in:
parent
36aced6d1a
commit
b3c0681a85
@ -35,7 +35,9 @@ export default function DataSource(): JSX.Element {
|
||||
selectedFramework,
|
||||
updateSelectedDataSource,
|
||||
updateServiceName,
|
||||
updateSelectedEnvironment,
|
||||
updateSelectedFramework,
|
||||
updateErrorDetails,
|
||||
} = useOnboardingContext();
|
||||
|
||||
const [supportedDataSources, setSupportedDataSources] = useState<
|
||||
@ -53,6 +55,11 @@ export default function DataSource(): JSX.Element {
|
||||
|
||||
setSupportedDataSources(dataSource);
|
||||
}
|
||||
|
||||
updateSelectedEnvironment('');
|
||||
updateErrorDetails('');
|
||||
updateServiceName('');
|
||||
updateSelectedFramework('');
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user