aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/OptionsLayout
diff options
context:
space:
mode:
authorDesmond Kyeremeh <elDekyfin@gmail.com>2021-07-01 14:23:55 +0000
committerDesmond Kyeremeh <elDekyfin@gmail.com>2021-07-01 14:23:55 +0000
commitbf26504a27dbfc87c0280cb4909d85f4d5ecae7a (patch)
treeee20116bda2484ca7287c6f4a2ae11a48046379c /modern/src/settings/OptionsLayout
parenta308b898094a3306fd28ac34e1b72fa36c72f804 (diff)
downloadetbsa-traccar-web-bf26504a27dbfc87c0280cb4909d85f4d5ecae7a.tar.gz
etbsa-traccar-web-bf26504a27dbfc87c0280cb4909d85f4d5ecae7a.tar.bz2
etbsa-traccar-web-bf26504a27dbfc87c0280cb4909d85f4d5ecae7a.zip
Removed unused vars
Diffstat (limited to 'modern/src/settings/OptionsLayout')
-rw-r--r--modern/src/settings/OptionsLayout/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/settings/OptionsLayout/index.js b/modern/src/settings/OptionsLayout/index.js
index c56ebc3..f6f1e4b 100644
--- a/modern/src/settings/OptionsLayout/index.js
+++ b/modern/src/settings/OptionsLayout/index.js
@@ -58,7 +58,7 @@ const OptionsLayout = ({ children }) => {
useEffect(() => {
const activeRoute = routes.find(route => route.href === location.pathname);
setOptionTitle(activeRoute.name);
- }, [location]);
+ }, [location, routes]);
const title = `Options / ${optionTitle}`;