mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-17 07:05:54 +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,
|
selectedFramework,
|
||||||
updateSelectedDataSource,
|
updateSelectedDataSource,
|
||||||
updateServiceName,
|
updateServiceName,
|
||||||
|
updateSelectedEnvironment,
|
||||||
updateSelectedFramework,
|
updateSelectedFramework,
|
||||||
|
updateErrorDetails,
|
||||||
} = useOnboardingContext();
|
} = useOnboardingContext();
|
||||||
|
|
||||||
const [supportedDataSources, setSupportedDataSources] = useState<
|
const [supportedDataSources, setSupportedDataSources] = useState<
|
||||||
@ -53,6 +55,11 @@ export default function DataSource(): JSX.Element {
|
|||||||
|
|
||||||
setSupportedDataSources(dataSource);
|
setSupportedDataSources(dataSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateSelectedEnvironment('');
|
||||||
|
updateErrorDetails('');
|
||||||
|
updateServiceName('');
|
||||||
|
updateSelectedFramework('');
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user