UI: Don't set management server ID if cookie isn't set (#13404)

This commit is contained in:
Josh Gordon 2026-07-06 14:13:13 -05:00 committed by GitHub
parent 4262c026d0
commit a951ac61d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -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, {})