#400: Fixed additional issues with JSON keys. NOT in public testing yet, as this may be breaking changes for JSON

This commit is contained in:
frikky
2022-03-15 23:05:25 +01:00
parent 80239913d8
commit 7140ce9a1c
7 changed files with 82 additions and 55 deletions
+3 -2
View File
@@ -1052,14 +1052,15 @@ const Admin = (props) => {
})
.then((responseJson) => {
//console.log("RESP: ", responseJson)
if (responseJson.success) {
if (responseJson.success === true) {
handleFileUpload(responseJson.id, file);
} else {
alert.error("Failed to upload file ", filename);
}
})
.catch((error) => {
alert.error(error.toString());
alert.error("Failed to upload file ", filename)
console.log(error.toString());
});
};