From 59d96234e7f14bdc572e1fc1eb72250d9d729d0d Mon Sep 17 00:00:00 2001 From: Ilja <ilja@ilja.space> Date: Sat, 24 Sep 2022 11:27:27 +0200 Subject: [PATCH] Correct order of routes We check for the first unhidden route, so the order needs to match the order on the sidebar. This is now fixed. --- src/router/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index 084c4e65..a44a2aa9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -193,11 +193,11 @@ export const asyncRouterMap = [ }, ...(statusesDisabled ? [] : [statuses]), ...(reportsDisabled ? [] : [reports]), - ...(invitesDisabled ? [] : [invites]), ...(moderationLogDisabled ? [] : [moderationLog]), ...(relaysDisabled ? [] : [relays]), ...(mediaProxyCacheDisabled ? [] : [mediaProxyCache]), ...(settingsDisabled ? [] : [settings]), + ...(invitesDisabled ? [] : [invites]), { path: '/users/:id', component: Layout, -- GitLab