aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/components
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/reports/components')
-rw-r--r--modern/src/reports/components/ReportFilter.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/reports/components/ReportFilter.js b/modern/src/reports/components/ReportFilter.js
index de692613..ff0dc146 100644
--- a/modern/src/reports/components/ReportFilter.js
+++ b/modern/src/reports/components/ReportFilter.js
@@ -27,7 +27,7 @@ const ReportFilter = ({ children, handleSubmit, handleSchedule, showOnly, ignore
const period = useSelector((state) => state.reports.period);
const from = useSelector((state) => state.reports.from);
const to = useSelector((state) => state.reports.to);
- const button = useSelector((state) => state.reports.button);
+ const [button, setButton] = useState('json');
const [description, setDescription] = useState();
const [calendarId, setCalendarId] = useState();
@@ -204,7 +204,7 @@ const ReportFilter = ({ children, handleSubmit, handleSchedule, showOnly, ignore
disabled={disabled}
onClick={handleClick}
selected={button}
- setSelected={(value) => dispatch(reportsActions.updateButton(value))}
+ setSelected={(value) => setButton(value)}
options={readonly ? {
json: t('reportShow'),
export: t('reportExport'),