NTP-47793 | Bug fix (#1399)
This commit is contained in:
@@ -115,7 +115,6 @@ export const AgentForm = forwardRef((props: AgentFormProps, ref) => {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
dispatch(getAgentPreferences());
|
||||
dispatch(getBucketGroup());
|
||||
dispatch(getAvailableRoles());
|
||||
dispatch(getIsEmailMandatoryForAgencyCode());
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user