mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 14:09:57 +08:00
fix: replace the wrong param name willExist (#2389)
This commit is contained in:
@ -165,7 +165,7 @@ class ModelEditPage extends React.Component {
|
||||
);
|
||||
}
|
||||
|
||||
submitModelEdit(willExist) {
|
||||
submitModelEdit(exitAfterSave) {
|
||||
const model = Setting.deepCopy(this.state.model);
|
||||
ModelBackend.updateModel(this.state.organizationName, this.state.modelName, model)
|
||||
.then((res) => {
|
||||
@ -175,7 +175,7 @@ class ModelEditPage extends React.Component {
|
||||
modelName: this.state.model.name,
|
||||
});
|
||||
|
||||
if (willExist) {
|
||||
if (exitAfterSave) {
|
||||
this.props.history.push("/models");
|
||||
} else {
|
||||
this.props.history.push(`/models/${this.state.model.owner}/${this.state.model.name}`);
|
||||
|
Reference in New Issue
Block a user