mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-16 06:23:50 +08:00
fix: replace the wrong param name willExist (#2389)
This commit is contained in:
@ -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}`);
|
||||
|
Reference in New Issue
Block a user