Skip to content

Commit e2e46e3

Browse files
authored
ui: fix dashboard on saml user login (#9097)
* ui: fix dashboard on saml user login Fixes #8950 Fixes #9045 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * Update ui/src/permission.js --------- Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 10dc5ad commit e2e46e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ui/src/permission.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,11 @@ router.beforeEach((to, from, next) => {
112112
} else {
113113
next({ path: redirect })
114114
}
115-
const project = vueProps.$localStorage.get(CURRENT_PROJECT)
115+
var project = vueProps.$localStorage.get(CURRENT_PROJECT)
116+
if (project == null) {
117+
project = {}
118+
store.commit('SET_PROJECT', project)
119+
}
116120
store.dispatch('ToggleTheme', project.id === undefined ? 'light' : 'dark')
117121
})
118122
})

0 commit comments

Comments
 (0)