awing-library 2.1.87 → 2.1.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -122,9 +122,7 @@ function SubCampaignDetail(props) {
|
|
|
122
122
|
: translationText.helperText
|
|
123
123
|
: '' }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 4, style: { padding: 8 }, children: (0, jsx_runtime_1.jsx)(material_1.TextField, { id: "billingUnit", required: true, select: true, variant: "standard", fullWidth: true, label: translationText.BillingUnit, value: String(subCampaign.billingUnit), onChange: function (e) {
|
|
124
124
|
onSubCampaignChange(function (pre) { return (__assign(__assign({}, pre), { billingUnit: Number(e.target.value) })); });
|
|
125
|
-
}, error: subValid.billingUnit
|
|
126
|
-
!subValid.billingUnit, helperText: subValid.billingUnit !== undefined &&
|
|
127
|
-
!subValid.billingUnit
|
|
125
|
+
}, error: !!subValid.billingUnit && !subValid.billingUnit, helperText: !!subValid.billingUnit && !subValid.billingUnit
|
|
128
126
|
? translationText.helperText
|
|
129
127
|
: '', children: Object.values(Enum_2.AnalyticType)
|
|
130
128
|
.filter(function (item) { return !isNaN(Number(item)); })
|
|
@@ -22,7 +22,7 @@ exports.subCampaignDetailValidState = (0, recoil_1.atom)({
|
|
|
22
22
|
return (result[sub.campaignGroup.id] =
|
|
23
23
|
(0, Utils_1.nameValid)(sub.campaignGroup.name) &&
|
|
24
24
|
(0, Utils_1.groupClassBValid)(sub.campaignGroup) &&
|
|
25
|
-
(0, Utils_1.groupClassCValid)(sub));
|
|
25
|
+
(0, Utils_1.groupClassCValid)(sub) && !!sub.campaignGroup.billingUnit);
|
|
26
26
|
});
|
|
27
27
|
return result;
|
|
28
28
|
},
|
|
@@ -58,9 +58,10 @@ exports.subCampaignValidState = (0, recoil_1.selector)({
|
|
|
58
58
|
var subCampaignAdsValid = get(exports.subCampaignAdsValidState);
|
|
59
59
|
var result = {};
|
|
60
60
|
subCampaigns.forEach(function (sub) {
|
|
61
|
+
var _a;
|
|
61
62
|
return (result[sub.campaignGroup.id] =
|
|
62
63
|
subCampaignDetailValid[sub.campaignGroup.id] &&
|
|
63
|
-
subCampaignAdsValid[sub.campaignGroup.id]);
|
|
64
|
+
subCampaignAdsValid[sub.campaignGroup.id] && Boolean((_a = sub.campaignGroup) === null || _a === void 0 ? void 0 : _a.billingUnit));
|
|
64
65
|
});
|
|
65
66
|
return result;
|
|
66
67
|
},
|