aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/EventReportPage.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/reports/EventReportPage.js')
-rw-r--r--modern/src/reports/EventReportPage.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js
index a0293978..92d04375 100644
--- a/modern/src/reports/EventReportPage.js
+++ b/modern/src/reports/EventReportPage.js
@@ -65,7 +65,15 @@ const Filter = ({ setItems }) => {
<InputLabel>{t('reportEventTypes')}</InputLabel>
<Select
value={eventTypes}
- onChange={(e) => setEventTypes(e.target.value)}
+ onChange={(event, child) => {
+ let values = event.target.value;
+ const clicked = child.props.value;
+ console.log(`${values} ${clicked}`)
+ if (values.includes('allEvents') && values.length > 1) {
+ values = [clicked];
+ }
+ setEventTypes(values);
+ }}
renderValue={(it) => (it.length > 1 ? it.length : it.length > 0 ? t(typesMap.get(it[0])) : it)}
multiple
>