From da168fc22082a4bdeae313ba90e0596366ecf87b Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Fri, 4 Oct 2024 14:33:21 +0200 Subject: [PATCH] fix: Both `Add` and `Home` being shown as selected on the homescreen (#3256) --- src/router.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/router.js b/src/router.js index 36cdeada..bda5078e 100644 --- a/src/router.js +++ b/src/router.js @@ -68,15 +68,17 @@ const routes = [ }, ], }, + ], + }, + { + path: "/add", + component: EditMonitor, + children: [ { path: "/clone/:id", component: EditMonitor, }, - { - path: "/add", - component: EditMonitor, - }, - ], + ] }, { path: "/list",