Skip to content

Commit

Permalink
remove unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
overheadhunter committed Aug 15, 2024
1 parent c316378 commit 2a71c4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createRouter, createWebHistory, RouteLocationRaw, RouteRecordRaw } from 'vue-router';
import { createRouter, createWebHistory, RouteLocationRaw, RouteLocationResolvedGeneric, RouteRecordRaw } from 'vue-router';
import authPromise from '../common/auth';
import backend from '../common/backend';
import { baseURL } from '../common/config';
Expand Down Expand Up @@ -149,8 +149,8 @@ router.beforeEach((to, from, next) => {
await backend.users.putMe();
}
}).finally(() => {
delete to.query.sync_me; // remove sync_me query parameter to avoid endless recursion
next({ path: to.path, query: to.query, params: to.params, replace: true });
let {sync_me: _, ...remainingQuery} = to.query; // remove sync_me query parameter to avoid endless recursion
next({ path: to.path, query: remainingQuery, replace: true });
});
} else {
next();
Expand Down

0 comments on commit 2a71c4c

Please sign in to comment.