mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
fix: replace the wrong param name willExist (#2389)
This commit is contained in:
@ -226,7 +226,7 @@ class PricingEditPage extends React.Component {
|
||||
);
|
||||
}
|
||||
|
||||
submitPricingEdit(willExist) {
|
||||
submitPricingEdit(exitAfterSave) {
|
||||
const pricing = Setting.deepCopy(this.state.pricing);
|
||||
PricingBackend.updatePricing(this.state.organizationName, this.state.pricingName, pricing)
|
||||
.then((res) => {
|
||||
@ -236,7 +236,7 @@ class PricingEditPage extends React.Component {
|
||||
pricingName: this.state.pricing.name,
|
||||
});
|
||||
|
||||
if (willExist) {
|
||||
if (exitAfterSave) {
|
||||
this.props.history.push("/pricings");
|
||||
} else {
|
||||
this.props.history.push(`/pricings/${this.state.pricing.owner}/${this.state.pricing.name}`);
|
||||
|
Reference in New Issue
Block a user