@dhis2/analytics 29.3.2 → 29.3.3
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.
|
@@ -151,6 +151,9 @@ const PeriodTransfer = ({
|
|
|
151
151
|
const opt = filteredRelativeOptions.find(o => o.id === effectiveRelativeFilterType);
|
|
152
152
|
return (opt === null || opt === void 0 ? void 0 : opt.getPeriods()) || [];
|
|
153
153
|
} else {
|
|
154
|
+
if (!/\d{4}/.test(fixedFilter.year)) {
|
|
155
|
+
return [];
|
|
156
|
+
}
|
|
154
157
|
const opt = filteredFixedOptions.find(o => o.id === effectiveFixedFilterType);
|
|
155
158
|
return (opt === null || opt === void 0 ? void 0 : opt.getPeriods(fixedPeriodConfig(Number(fixedFilter.year)))) || [];
|
|
156
159
|
}
|
|
@@ -143,6 +143,9 @@ const PeriodTransfer = ({
|
|
|
143
143
|
const opt = filteredRelativeOptions.find(o => o.id === effectiveRelativeFilterType);
|
|
144
144
|
return (opt === null || opt === void 0 ? void 0 : opt.getPeriods()) || [];
|
|
145
145
|
} else {
|
|
146
|
+
if (!/\d{4}/.test(fixedFilter.year)) {
|
|
147
|
+
return [];
|
|
148
|
+
}
|
|
146
149
|
const opt = filteredFixedOptions.find(o => o.id === effectiveFixedFilterType);
|
|
147
150
|
return (opt === null || opt === void 0 ? void 0 : opt.getPeriods(fixedPeriodConfig(Number(fixedFilter.year)))) || [];
|
|
148
151
|
}
|