Fix double routing of root path

This commit is contained in:
Bill Thornton
2022-10-21 17:28:17 -04:00
parent 8af09253c8
commit c0662c80b7
4 changed files with 11 additions and 13 deletions
+1 -5
View File
@@ -412,11 +412,7 @@ class AppRouter {
if (apiClient && apiClient.isLoggedIn()) {
console.debug('[appRouter] user is authenticated');
if (route.isDefaultRoute) {
console.debug('[appRouter] loading home page');
this.goHome();
return;
} else if (route.roles) {
if (route.roles) {
this.#validateRoles(apiClient, route.roles).then(() => {
callback();
}, this.#beginConnectionWizard.bind(this));