fix: replace the wrong param name willExist (#2389)

This commit is contained in:
wxy
2023-10-10 21:47:38 +08:00
committed by GitHub
parent 9aec69ef47
commit 684cbdb951
20 changed files with 41 additions and 41 deletions

View File

@ -230,7 +230,7 @@ class LdapEditPage extends React.Component {
);
}
submitLdapEdit(willExist) {
submitLdapEdit(exitAfterSave) {
LddpBackend.updateLdap(this.state.ldap)
.then((res) => {
if (res.status === "ok") {
@ -239,7 +239,7 @@ class LdapEditPage extends React.Component {
organizationName: this.state.ldap.owner,
});
if (willExist) {
if (exitAfterSave) {
this.props.history.push(`/organizations/${this.state.organizationName}`);
}
} else {