Fixed async issues with apps everywhere

This commit is contained in:
frikky
2021-11-01 15:05:56 +01:00
parent 502ed68091
commit 3185a157e5
8 changed files with 3816 additions and 55 deletions
+8 -1
View File
@@ -278,7 +278,14 @@ export const validateJson = (showResult) => {
}
}
const result = jsonvalid ? JSON.parse(showResult) : showResult
var result = showResult
try {
const result = jsonvalid ? JSON.parse(showResult) : showResult
} catch (e) {
//console.log("Failed parsing JSON even though its valid: ", e)
jsonvalid = false
}
//console.log("VALID: ", jsonvalid, result)
return {
"valid": jsonvalid,