mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
Refactor: Linting errors
This commit is contained in:
parent
754254c4b1
commit
9b9233f192
1 changed files with 3 additions and 1 deletions
|
@ -201,7 +201,9 @@ const router = createRouter({
|
|||
router.beforeEach((to, from) => {
|
||||
// Check if redirectedFrom is defined to check if this function has already been run
|
||||
// Without this check, the router will be stuck in an infinite loop
|
||||
if (to.redirectedFrom) return;
|
||||
if (to.redirectedFrom) {
|
||||
return;
|
||||
}
|
||||
|
||||
// If the user is navigating to same page but to.query is empty, they have clicked on the same link
|
||||
// For example: Clicked on Add monitor twice
|
||||
|
|
Loading…
Reference in a new issue