Skip to content

Commit

Permalink
fix(admin-ui): not able to save base dn in source backend ldap & inum…
Browse files Browse the repository at this point in the history
… db #1258
  • Loading branch information
jv18creator committed Aug 7, 2023
1 parent 12fbd0a commit d840916
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
12 changes: 9 additions & 3 deletions admin-ui/plugins/jans-link/components/Tabs/InumDBServerTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ const InumDBServerTab = () => {
...cacheRefreshConfiguration,
targetConfig: {
...formik.values.targetConfig,
baseDNs: isStringsArray(formik.values.targetConfig.baseDNs || [])
baseDNs: isStringsArray(formik.values?.targetConfig?.baseDNs || [])
? formik.values.targetConfig.baseDNs
: convertToStringArray(formik.values?.targetConfig.baseDNs || []),
servers: isStringsArray(formik.values.targetConfig.servers || [])
servers: isStringsArray(formik.values?.targetConfig?.servers || [])
? formik.values.targetConfig.servers
: convertToStringArray(formik.values?.targetConfig.servers || []),
: convertToStringArray(formik.values?.targetConfig?.servers || []),
},
defaultInumServer: formik.values.defaultInumServer,
},
Expand All @@ -124,6 +124,12 @@ const InumDBServerTab = () => {
...cacheRefreshConfiguration,
targetConfig: {
...formik.values.targetConfig,
baseDNs: isStringsArray(formik.values?.targetConfig?.baseDNs || [])
? formik.values.targetConfig.baseDNs
: convertToStringArray(formik.values?.targetConfig.baseDNs || []),
servers: isStringsArray(formik.values?.targetConfig?.servers || [])
? formik.values.targetConfig.servers
: convertToStringArray(formik.values?.targetConfig.servers || []),
bindPassword: updatedPassword,
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,16 @@ const SourceBackendServersTab = () => {
sourceConfigs: [
{
...formik.values.sourceConfigs,
baseDNs: isStringsArray(formik.values?.sourceConfigs?.baseDNs || [])
? formik.values.sourceConfigs.baseDNs
: convertToStringArray(
formik.values?.sourceConfigs.baseDNs || []
),
servers: isStringsArray(formik.values?.sourceConfigs?.servers || [])
? formik.values.sourceConfigs.servers
: convertToStringArray(
formik.values?.sourceConfigs.servers || []
),
bindPassword: updatedPassword,
},
],
Expand Down

0 comments on commit d840916

Please sign in to comment.