NTP-47793 | Bug fix (#1399)

This commit is contained in:
Ashish Deo
2025-03-20 18:29:39 +05:30
committed by GitHub
parent 3bb8df2689
commit 928ae3a258
2 changed files with 5 additions and 1 deletions

View File

@@ -115,7 +115,6 @@ export const AgentForm = forwardRef((props: AgentFormProps, ref) => {
};
useEffect(() => {
dispatch(getAgentPreferences());
dispatch(getBucketGroup());
dispatch(getAvailableRoles());
dispatch(getIsEmailMandatoryForAgencyCode());

View File

@@ -36,6 +36,7 @@ import { GenericObject } from '@cp/src/types/CommonConstans';
import { useColumnDefs } from './UploadHistory/ColumnDefs';
import { fetchUploadHistoryPolling } from './UploadHistory/actions/uploadHistoryDrawerActions';
import { Roles } from '../auth/constants/AuthConstants';
import { getAgentPreferences } from './AgentForm/actions/agentFormActions';
export const getQueryString = () => {
const queryParams = readQueryParams();
@@ -140,6 +141,10 @@ const AllAgents = () => {
dispatch(setAgentRefId(data?.referenceId));
};
useEffect(() => {
dispatch(getAgentPreferences());
}, []);
useEffect(() => {
isDrawerOpen
? window.addEventListener('beforeunload', handleTabClose)