mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 13:05:15 +00:00
Fix possibly undefined type error
This commit is contained in:
parent
921ca26688
commit
096c962607
|
@ -72,7 +72,7 @@ router.beforeEach((to, from, next) => {
|
|||
// No login if already logged in
|
||||
next({ path: '/' });
|
||||
}
|
||||
if (!to.meta.allowAnonymous && !userService.loggedIn()) {
|
||||
if (!to.meta?.allowAnonymous && !userService.loggedIn()) {
|
||||
// Forward to login if login is required
|
||||
next({
|
||||
path: '/login',
|
||||
|
|
Loading…
Reference in New Issue
Block a user