aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-04-17 11:29:43 -0700
committerAnton Tananaev <anton@traccar.org>2022-04-17 11:29:43 -0700
commit2054cc9d11d77d7883a5858bcbcc3833aed4b874 (patch)
treeb953ff5f18f037c33904a431675686ab579970d2 /modern/src/reports
parentde73ecd28f8428c026a25225573c971250723528 (diff)
downloadtrackermap-web-2054cc9d11d77d7883a5858bcbcc3833aed4b874.tar.gz
trackermap-web-2054cc9d11d77d7883a5858bcbcc3833aed4b874.tar.bz2
trackermap-web-2054cc9d11d77d7883a5858bcbcc3833aed4b874.zip
Fix effect dependencies
Diffstat (limited to 'modern/src/reports')
-rw-r--r--modern/src/reports/ReplayPage.js2
-rw-r--r--modern/src/reports/ReportLayout.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/reports/ReplayPage.js b/modern/src/reports/ReplayPage.js
index d79e19ce..4ffab49d 100644
--- a/modern/src/reports/ReplayPage.js
+++ b/modern/src/reports/ReplayPage.js
@@ -100,7 +100,7 @@ const ReplayPage = () => {
if (index >= positions.length) {
clearInterval(timerRef.current);
}
- }, [index]);
+ }, [index, positions]);
const handleSubmit = async (deviceId, from, to, _, headers) => {
setSelectedDeviceId(deviceId);
diff --git a/modern/src/reports/ReportLayout.js b/modern/src/reports/ReportLayout.js
index f6e71db0..8606ed42 100644
--- a/modern/src/reports/ReportLayout.js
+++ b/modern/src/reports/ReportLayout.js
@@ -79,7 +79,7 @@ const ReportLayout = ({ children, filter }) => {
break;
}
});
- }, [location]);
+ }, [routes, location]);
const pageTitle = `${t('reportTitle')} / ${reportTitle}`;