Merge pull request #75 from GRA0007/dev

Fix cron and translations
This commit is contained in:
Benjamin Grant 2021-06-17 12:23:40 +10:00 committed by GitHub
commit 66464435e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View file

@ -2,6 +2,8 @@ cron:
- description: "clean up old events" - description: "clean up old events"
url: /tasks/cleanup url: /tasks/cleanup
schedule: every monday 09:00 schedule: every monday 09:00
target: api
- description: "clean up old events without a visited date" - description: "clean up old events without a visited date"
url: /tasks/legacyCleanup url: /tasks/legacyCleanup
schedule: every tuesday 09:00 schedule: every tuesday 09:00
target: api

View file

@ -74,11 +74,7 @@ const Settings = () => {
}); });
// Reset scroll on navigation // Reset scroll on navigation
useEffect(() => { useEffect(() => window.scrollTo(0, 0), [pathname]);
document.documentElement.style.scrollBehavior = 'auto';
window.scrollTo(0, 0);
document.documentElement.style.scrollBehavior = 'smooth';
}, [pathname]);
return ( return (
<> <>