fix: updating the redirection of admin settings to fix failing tests (#18971)
This commit is contained in:
parent
c4c873953b
commit
424e3b24e4
|
|
@ -130,10 +130,14 @@ function AppRouter(props: {
|
|||
<Redirect
|
||||
exact
|
||||
from={ADMIN_SETTINGS_PATH}
|
||||
to={getDefaultAdminSettingsPath({
|
||||
isSuperUser: user?.isSuperUser || false,
|
||||
tenantPermissions,
|
||||
})}
|
||||
to={
|
||||
!user
|
||||
? ADMIN_SETTINGS_PATH
|
||||
: getDefaultAdminSettingsPath({
|
||||
isSuperUser: user?.isSuperUser || false,
|
||||
tenantPermissions,
|
||||
})
|
||||
}
|
||||
/>
|
||||
<SentryRoute
|
||||
component={Settings}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import { getSettingsLoadingState } from "selectors/settingsSelectors";
|
|||
import styled from "styled-components";
|
||||
import LeftPane from "@appsmith/pages/AdminSettings/LeftPane";
|
||||
import Main from "@appsmith/pages/AdminSettings/Main";
|
||||
import WithSuperUserHOC from "pages/Settings/WithSuperUserHoc";
|
||||
import WithSuperUserHOC from "@appsmith/pages/AdminSettings/WithSuperUserHoc";
|
||||
import { getCurrentUser } from "selectors/usersSelectors";
|
||||
import bootIntercom from "utils/bootIntercom";
|
||||
import { LoaderContainer } from "pages/Settings/components";
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
export * from "ce/pages/AdminSettings/WithSuperUserHoc";
|
||||
import { default as CE_WithSuperUserHOC } from "ce/pages/AdminSettings/WithSuperUserHoc";
|
||||
export default CE_WithSuperUserHOC;
|
||||
Loading…
Reference in New Issue
Block a user