Skip to content

Commit

Permalink
core: fix error when creating new user with default path (cherry-pick #…
Browse files Browse the repository at this point in the history
…12609) (#12612)

core: fix error when creating new user with default path (#12609)

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens L. <[email protected]>
  • Loading branch information
gcp-cherry-pick-bot[bot] and BeryJu authored Jan 9, 2025
1 parent 052da72 commit 1cf0f57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/admin/users/UserListPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ export class UserListPage extends WithBrandConfig(WithCapabilitiesConfig(TablePa

constructor() {
super();
this.activePath = getURLParam<string>("path", "/");
const defaultPath = new DefaultUIConfig().defaults.userPath;
this.activePath = getURLParam<string>("path", defaultPath);
uiConfig().then((c) => {
if (c.defaults.userPath !== new DefaultUIConfig().defaults.userPath) {
if (c.defaults.userPath !== defaultPath) {
this.activePath = c.defaults.userPath;
}
});
Expand Down

0 comments on commit 1cf0f57

Please sign in to comment.