Skip to content

Commit

Permalink
fix(admin-ui): clear source ldap server data on remove
Browse files Browse the repository at this point in the history
  • Loading branch information
jv18creator committed Aug 7, 2023
1 parent d840916 commit fc9665d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ const SourceBackendServersTab = () => {
const handleRemoveServer = () => {
setAddSourceLdapServer(false)
formik.setFieldValue('sourceConfigs.enabled', false)
formik.setFieldValue('sourceConfigs.configId', null)
formik.setFieldValue('sourceConfigs.bindDN', null)
formik.setFieldValue('sourceConfigs.maxConnections', null)
formik.setFieldValue('sourceConfigs.servers', [])
formik.setFieldValue('sourceConfigs.baseDNs', [])
formik.setFieldValue('sourceConfigs.useSSL', null)
formik.setFieldValue('sourceConfigs.bindPassword', null)
}

const handleAddServer = () => {
Expand Down

0 comments on commit fc9665d

Please sign in to comment.