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

@ -191,7 +191,7 @@ class GroupEditPage extends React.Component {
);
}
submitGroupEdit(willExist) {
submitGroupEdit(exitAfterSave) {
const group = Setting.deepCopy(this.state.group);
group["isTopGroup"] = this.state.organizations.some((organization) => organization.name === group.parentId);
@ -203,7 +203,7 @@ class GroupEditPage extends React.Component {
groupName: this.state.group.name,
});
if (willExist) {
if (exitAfterSave) {
const groupTreeUrl = sessionStorage.getItem("groupTreeUrl");
if (groupTreeUrl !== null) {
sessionStorage.removeItem("groupTreeUrl");