Skip to content

Commit

Permalink
changes in the delivery type and selection of boundary (#1816)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhavya-egov authored Nov 13, 2024
1 parent 938a25c commit 0539c64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ const SelectingBoundaryComponent = ({
}, [boundaryData]);

useEffect(() => {
if (isBoundaryDataValid && hierarchy && selectedData1?.length > 0) {
if (isBoundaryDataValid && hierarchy && selectedData1?.length > 0 && boundaryOptions[parentRoot]) {
updateBoundaryOptions(selectedData1, boundaryData, hierarchy);
}
}, [hierarchy, isBoundaryDataValid]);
}, [hierarchy, isBoundaryDataValid ,boundaryOptions[parentRoot] ]);

function createHierarchyStructure(hierarchy) {
const hierarchyStructure = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const cycleDataRemap=(data)=> {

return {
id: parseInt(delivery.deliveryIndex, 10),
deliveryType: delivery.deliveryStrategy || "DIRECT",
deliveryStrategy: delivery.deliveryStrategy || "DIRECT",
mandatoryWaitSinceLastDeliveryInDays: null,
doseCriteria: delivery.deliveryRules.map(rule => {
const doseCriteriaResult = processDoseCriteria(rule, resourcesMap);
Expand Down

0 comments on commit 0539c64

Please sign in to comment.