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

@ -411,7 +411,7 @@ class OrganizationEditPage extends React.Component {
);
}
submitOrganizationEdit(willExist) {
submitOrganizationEdit(exitAfterSave) {
const organization = Setting.deepCopy(this.state.organization);
organization.accountItems = organization.accountItems?.filter(accountItem => accountItem.name !== "Please select an account item");
@ -429,7 +429,7 @@ class OrganizationEditPage extends React.Component {
});
window.dispatchEvent(new Event("storageOrganizationsChanged"));
if (willExist) {
if (exitAfterSave) {
this.props.history.push("/organizations");
} else {
this.props.history.push(`/organizations/${this.state.organization.name}`);