diff options
Diffstat (limited to 'modern/src/settings/OptionsLayout/index.js')
-rw-r--r-- | modern/src/settings/OptionsLayout/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/settings/OptionsLayout/index.js b/modern/src/settings/OptionsLayout/index.js index c56ebc3b..f6f1e4b8 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}`; |