fix: handle add message in frontend (#1340)

This commit is contained in:
Yaodong Yu
2022-11-29 20:32:47 +08:00
committed by GitHub
parent 7867060b71
commit d815bf92bd
18 changed files with 86 additions and 47 deletions

View File

@ -786,7 +786,7 @@ class ApplicationEditPage extends React.Component {
const application = Setting.deepCopy(this.state.application);
ApplicationBackend.updateApplication("admin", this.state.applicationName, application)
.then((res) => {
if (res.msg === "") {
if (res.status === "ok") {
Setting.showMessage("success", "Successfully saved");
this.setState({
applicationName: this.state.application.name,