mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-06 06:29:58 +08:00
fix: replace the wrong param name willExist (#2389)
This commit is contained in:
@ -322,7 +322,7 @@ class WebhookEditPage extends React.Component {
|
||||
);
|
||||
}
|
||||
|
||||
submitWebhookEdit(willExist) {
|
||||
submitWebhookEdit(exitAfterSave) {
|
||||
const webhook = Setting.deepCopy(this.state.webhook);
|
||||
WebhookBackend.updateWebhook(this.state.webhook.owner, this.state.webhookName, webhook)
|
||||
.then((res) => {
|
||||
@ -332,7 +332,7 @@ class WebhookEditPage extends React.Component {
|
||||
webhookName: this.state.webhook.name,
|
||||
});
|
||||
|
||||
if (willExist) {
|
||||
if (exitAfterSave) {
|
||||
this.props.history.push("/webhooks");
|
||||
} else {
|
||||
this.props.history.push(`/webhooks/${this.state.webhook.name}`);
|
||||
|
Reference in New Issue
Block a user