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

@ -425,7 +425,7 @@ class SyncerEditPage extends React.Component {
);
}
submitSyncerEdit(willExist) {
submitSyncerEdit(exitAfterSave) {
const syncer = Setting.deepCopy(this.state.syncer);
SyncerBackend.updateSyncer(this.state.syncer.owner, this.state.syncerName, syncer)
.then((res) => {
@ -435,7 +435,7 @@ class SyncerEditPage extends React.Component {
syncerName: this.state.syncer.name,
});
if (willExist) {
if (exitAfterSave) {
this.props.history.push("/syncers");
} else {
this.props.history.push(`/syncers/${this.state.syncer.name}`);