This is an automated email from the ASF dual-hosted git repository.

weizhouapache pushed a commit to branch 4.22
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.22 by this push:
     new a951ac61d09 UI: Don't set management server ID if cookie isn't set 
(#13404)
a951ac61d09 is described below

commit a951ac61d0900764a4ec85df8e1250c0dcd24af4
Author: Josh Gordon <[email protected]>
AuthorDate: Mon Jul 6 14:13:13 2026 -0500

    UI: Don't set management server ID if cookie isn't set (#13404)
---
 ui/src/permission.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ui/src/permission.js b/ui/src/permission.js
index eeb36c57117..58f24b4dbc2 100644
--- a/ui/src/permission.js
+++ b/ui/src/permission.js
@@ -93,7 +93,10 @@ router.beforeEach((to, from, next) => {
           return
         }
         store.commit('SET_LOGIN_FLAG', true)
-        store.commit('SET_MS_ID', Cookies.get('managementserverid'))
+        const MS_ID = Cookies.get('managementserverid')
+        if (MS_ID) {
+          store.commit('SET_MS_ID', MS_ID)
+        }
       }
       if (Object.keys(store.getters.apis).length === 0) {
         const cachedApis = vueProps.$localStorage.get(APIS, {})

Reply via email to