Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- useEffect(() => {
- if(!health) {
- setCRCode('');
- setJiraID('');
- setBasePath('');
- }
- }, []);
- useEffect(() => {
- setHiveAction('');
- setAlluxioAction('');
- }, []);
- useEffect(() => {
- resetHiveForm();
- }, []);
- useEffect(() => {
- setInputs([]);
- }, []);
- useEffect(() => {
- setPartitionColsName([]);
- }, []);
- useEffect(() => {
- setAutomation('alluxio');
- }, []);
- // clear errors
- useEffect(() => {
- dispatch(clearErrorsAction());
- }, []);
- // check if authed
- useEffect(() => {
- if(!isAuthenticated) {
- navigate(`/login`);
- }
- }, [isAuthenticated]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement