Skip to content

Commit 21a6315

Browse files
committed
fix(admin-ui): jans-link source ldap server not saving
Signed-off-by: Jeet Viramgama <[email protected]>
1 parent 2b1e79e commit 21a6315

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

admin-ui/plugins/admin/components/Roles/UiRoleListPage.js

+16-16
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@ import getThemeColor from 'Context/theme/config'
2727
import { ROLE_DELETE } from '../../../../app/utils/PermChecker'
2828

2929
function UiRoleListPage() {
30-
const apiRoles = useSelector(state => state.apiRoleReducer.items);
31-
const loading = useSelector(state => state.apiRoleReducer.loading);
32-
const permissions = useSelector(state => state.authReducer.permissions);
30+
const apiRoles = useSelector((state) => state.apiRoleReducer.items)
31+
const loading = useSelector((state) => state.apiRoleReducer.loading)
32+
const permissions = useSelector((state) => state.authReducer.permissions)
3333

34-
const dispatch = useDispatch();
35-
const { t } = useTranslation()
3634
const [modal, setModal] = useState(false)
37-
const toggle = () => setModal(!modal)
38-
const myActions = []
39-
const options = []
40-
const userAction = {}
41-
const pageSize = localStorage.getItem('paggingSize') || 10
42-
const theme = useContext(ThemeContext)
43-
const selectedTheme = theme.state.theme
44-
const themeColors = getThemeColor(selectedTheme)
45-
const bgThemeColor = { background: themeColors.background }
35+
const myActions = [],
36+
options = [],
37+
userAction = {},
38+
pageSize = localStorage.getItem('paggingSize') || 10,
39+
theme = useContext(ThemeContext),
40+
selectedTheme = theme.state.theme,
41+
themeColors = getThemeColor(selectedTheme),
42+
bgThemeColor = { background: themeColors.background },
43+
toggle = () => setModal(!modal),
44+
{ t } = useTranslation(),
45+
dispatch = useDispatch()
4646

4747
useEffect(() => {
4848
doFetchList()
@@ -96,7 +96,7 @@ function UiRoleListPage() {
9696
return (
9797
<select
9898
onChange={(e) => rowData.onChange(e.target.value)}
99-
className="form-control"
99+
className='form-control'
100100
>
101101
<option
102102
selected={
@@ -129,7 +129,7 @@ function UiRoleListPage() {
129129
]}
130130
data={apiRoles}
131131
isLoading={loading || false}
132-
title=""
132+
title=''
133133
actions={myActions}
134134
options={{
135135
search: true,

admin-ui/plugins/jans-link/components/SourceBackendServers/SourceBackendServerForm.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ const SourceBackendServerForm = () => {
138138
let payload
139139

140140
if (!sourceConfig?.configId) {
141+
const sourceConfigs = [...(cacheRefreshConfiguration.sourceConfigs || [])]
141142
payload = [
142-
...cacheRefreshConfiguration.sourceConfigs,
143+
...sourceConfigs,
143144
{
144145
...formik.values.sourceConfigs,
145146
baseDNs: baseDNs,

0 commit comments

Comments
 (0)