From 4d91a07cc1074c9fc68e9d395f53479d8f8ae3a2 Mon Sep 17 00:00:00 2001 From: Alexander Onnikov <Alexander.Onnikov@gmail.com> Date: Sat, 30 Sep 2023 23:52:52 +0700 Subject: [PATCH] UBER-957 Fix Settings navigation (#3769) Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com> --- .../src/components/AccountPopup.svelte | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/workbench-resources/src/components/AccountPopup.svelte b/plugins/workbench-resources/src/components/AccountPopup.svelte index 7bafa39139..f893460201 100644 --- a/plugins/workbench-resources/src/components/AccountPopup.svelte +++ b/plugins/workbench-resources/src/components/AccountPopup.svelte @@ -69,8 +69,12 @@ loc.fragment = undefined loc.query = undefined loc.path[2] = settingId - if (sp) loc.path[3] = sp.name - loc.path.length = 4 + if (sp) { + loc.path[3] = sp.name + loc.path.length = 4 + } else { + loc.path.length = 3 + } navigate(loc) }