Client:Pages:PotalSettins: change useEffect dependency

This commit is contained in:
Darya Umrikhina 2024-06-14 15:15:27 +07:00
parent c750dd62e9
commit 03b5d87b98
4 changed files with 4 additions and 4 deletions

View File

@ -125,7 +125,7 @@ const DataManagementWrapper = (props) => {
if (currentTab !== -1 && data.length) setCurrentTabId(currentTab.id);
setIsLoading(true);
}, [location]);
}, [location.pathname]);
const onSelect = (e) => {
const url = isManagement()

View File

@ -64,7 +64,7 @@ const DeleteData = (props) => {
if (currentTab !== -1 && data.length) setCurrentTabId(currentTab.id);
setIsLoading(true);
}, [location]);
}, [location.pathname]);
const onSelect = (e) => {
navigate(

View File

@ -121,7 +121,7 @@ const DeveloperToolsWrapper = (props) => {
}
setIsLoading(true);
}, [location]);
}, [location.pathname]);
useEffect(() => {
ready && startTransition(load);

View File

@ -86,7 +86,7 @@ const SecurityWrapper = (props) => {
if (currentTab !== -1 && data.length) setCurrentTabId(currentTab.id);
load();
}, [location]);
}, [location.pathname]);
const onSelect = (e) => {
navigate(