From 9b9233f192cbb76388023aaa7629d4b4bd83cc75 Mon Sep 17 00:00:00 2001 From: Suven-p Date: Sat, 16 Nov 2024 06:56:53 +0545 Subject: [PATCH] Refactor: Linting errors --- src/router.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/router.js b/src/router.js index 9e6fcdd9c..12300b5bf 100644 --- a/src/router.js +++ b/src/router.js @@ -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