feat: fix LDAP page crash (#1630)

This commit is contained in:
Yaodong Yu
2023-03-08 21:31:55 +08:00
committed by GitHub
parent 7c4a6fea02
commit a5dfe54a33
7 changed files with 32 additions and 31 deletions

View File

@ -23,6 +23,7 @@ class LdapSyncPage extends React.Component {
super(props);
this.state = {
ldapId: props.match.params.ldapId,
organizationName: props.match.params.organizationName,
ldap: null,
users: [],
existUuids: [],
@ -73,7 +74,7 @@ class LdapSyncPage extends React.Component {
}
getLdap() {
LdapBackend.getLdap(this.state.ldapId)
LdapBackend.getLdap(this.state.organizationName, this.state.ldapId)
.then((res) => {
if (res.status === "ok") {
this.setState((prevState) => {