Skip to content

Commit

Permalink
fixed HLM-6109
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhavya-egov committed May 29, 2024
1 parent 498571b commit 34435d0
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ function SelectingBoundaries({ onSelect, formData, ...props }) {
const tenantId = Digit.ULBService.getCurrentTenantId();
const [params, setParams] = useState(props?.props?.dataParams);
const [hierarchy, setHierarchy] = useState(params?.hierarchyType);
// const [hierarchy, setHierarchy] = useState(props?.props?.sessionData?.HCM_CAMPAIGN_SELECTING_BOUNDARY_DATA?.boundaryType?.hierarchy || {});
// const [showcomponent, setShowComponent] = useState(
// props?.props?.sessionData?.HCM_CAMPAIGN_SELECTING_BOUNDARY_DATA?.boundaryType?.hierarchy || false
// );
// const [boundaryType, setBoundaryType] = useState(null);
const [boundaryType, setBoundaryType] = useState(
props?.props?.sessionData?.HCM_CAMPAIGN_SELECTING_BOUNDARY_DATA?.boundaryType?.boundaryData ? undefined : null
);
Expand Down Expand Up @@ -203,7 +198,7 @@ function SelectingBoundaries({ onSelect, formData, ...props }) {

useEffect(() => {
fetchBoundaryTypeData();
}, [boundaryType, parentArray]);
}, [boundaryType, parentArray ,selectedData]);

useEffect(() => {
if (boundaryTypeDataresult) {
Expand Down

0 comments on commit 34435d0

Please sign in to comment.