fix(ui): properly handle boolean json responses (#3626)
This commit is contained in:
parent
a995e578fa
commit
6efc687036
5 changed files with 18 additions and 17 deletions
|
|
@ -441,7 +441,7 @@
|
|||
);
|
||||
if (resp) {
|
||||
fetch("./api/apps/" + id, { method: "DELETE" }).then((r) => {
|
||||
if (r.status == 200) document.location.reload();
|
||||
if (r.status === 200) document.location.reload();
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
@ -557,7 +557,7 @@
|
|||
method: "POST",
|
||||
body: JSON.stringify(this.editForm),
|
||||
}).then((r) => {
|
||||
if (r.status == 200) document.location.reload();
|
||||
if (r.status === 200) document.location.reload();
|
||||
});
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue