Updates from cloud pre merge

This commit is contained in:
Frikky
2024-07-31 19:30:47 +02:00
parent d5274e9da1
commit 9734a014b9
9 changed files with 253 additions and 84 deletions
+5 -2
View File
@@ -2586,6 +2586,8 @@ const Apps = (props) => {
if (parsedtext.indexOf("openapi") === -1 && parsedtext.indexOf("swagger") === -1) {
setValidation(false);
setOpenApiError("Error in generation: "+parsedtext);
return;
}
} catch (e) {
@@ -2684,10 +2686,11 @@ const Apps = (props) => {
body: openApidata,
credentials: "include",
})
.then((response) => {
.then((response) => {
setValidation(false);
return response.json();
})
})
.then((responseJson) => {
if (responseJson.success) {
setAppValidation(responseJson.id);