From 6505a13e0037d5de5737e940907cc62c4a9107bc Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 17 Apr 2022 13:33:27 -0700 Subject: Refactor settings layout --- modern/src/reports/ReportFilter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modern/src/reports') diff --git a/modern/src/reports/ReportFilter.js b/modern/src/reports/ReportFilter.js index bfd8a540..827b36fb 100644 --- a/modern/src/reports/ReportFilter.js +++ b/modern/src/reports/ReportFilter.js @@ -9,7 +9,7 @@ import { useTranslation } from '../LocalizationProvider'; const ReportFilter = ({ children, handleSubmit, showOnly }) => { const t = useTranslation(); - const devices = useSelector((state) => Object.values(state.devices.items)); + const devices = useSelector((state) => state.devices.items); const [deviceId, setDeviceId] = useState(); const [period, setPeriod] = useState('today'); const [from, setFrom] = useState(moment().subtract(1, 'hour')); @@ -65,7 +65,7 @@ const ReportFilter = ({ children, handleSubmit, showOnly }) => { {t('reportDevice')} -- cgit v1.2.3