@undp/carbon-library 2.1.13-PAN-1.5 → 2.1.13-PAN-1.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +11 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +11 -4
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -20826,10 +20826,13 @@ var NdcActionDetails = function (props) {
|
|
20826
20826
|
(programmeDetails === null || programmeDetails === void 0 ? void 0 : programmeDetails.sector) === Sector.Education ||
|
20827
20827
|
(programmeDetails === null || programmeDetails === void 0 ? void 0 : programmeDetails.sector) === Sector.Hospitality
|
20828
20828
|
? mitigationTypeList
|
20829
|
-
: sectorMitigationTypesListMapped[sector], defaultValue:
|
20829
|
+
: sectorMitigationTypesListMapped[sector], defaultValue: sectorMitigationTypesListMapped[sector]
|
20830
|
+
? (_c = (_b = (_a = sectorMitigationTypesListMapped[sector]) === null || _a === void 0 ? void 0 : _a.find(function (item) { return item.label === sector; })) === null || _b === void 0 ? void 0 : _b.label) !== null && _c !== void 0 ? _c : ""
|
20831
|
+
: "" }))),
|
20830
20832
|
(ndcActionType === NdcActionTypes.Mitigation ||
|
20831
20833
|
ndcActionType === NdcActionTypes.CrossCutting) &&
|
20832
|
-
mitigationType &&
|
20834
|
+
mitigationType &&
|
20835
|
+
mitigationSubTypesListMapped[mitigationType] && (React.createElement(Col, { style: { marginLeft: "38px" } },
|
20833
20836
|
React.createElement(Form.Item, { label: t("ndcAction:mitigationSubType"), name: "mitigationSubType", rules: [
|
20834
20837
|
{
|
20835
20838
|
required: true,
|
@@ -20839,8 +20842,12 @@ var NdcActionDetails = function (props) {
|
|
20839
20842
|
React.createElement(Select, { size: "large", onChange: handleMitigationSubTypeChange, style: {
|
20840
20843
|
width: "249px",
|
20841
20844
|
borderRadius: "4px",
|
20842
|
-
}, options: mitigationSubTypesListMapped[mitigationType], value:
|
20843
|
-
((
|
20845
|
+
}, options: mitigationSubTypesListMapped[mitigationType], value: mitigationSubType ||
|
20846
|
+
((_f = (mitigationSubTypesListMapped[subSector]
|
20847
|
+
? (_e = (_d = mitigationSubTypesListMapped[subSector]) === null || _d === void 0 ? void 0 : _d.find(function (item) { return item.label === subSector; })) === null || _e === void 0 ? void 0 : _e.label
|
20848
|
+
: "")) !== null && _f !== void 0 ? _f : ""), defaultValue: mitigationSubTypesListMapped[subSector]
|
20849
|
+
? (_h = (_g = mitigationSubTypesListMapped[subSector]) === null || _g === void 0 ? void 0 : _g.find(function (item) { return item.label === subSector; })) === null || _h === void 0 ? void 0 : _h.label
|
20850
|
+
: "" }))))),
|
20844
20851
|
React.createElement(Row, { justify: "start", align: "middle" },
|
20845
20852
|
React.createElement(Col, { span: 20 },
|
20846
20853
|
React.createElement(Form.Item, { label: t("ndcAction:methodology"), name: "methodology", rules: [
|