Fixed minor frontend issues related to unparsable data

This commit is contained in:
frikky
2022-07-28 02:19:05 +02:00
parent 1950c54ec8
commit 856daaacda
4 changed files with 67 additions and 58 deletions
+9 -4
View File
@@ -414,9 +414,11 @@ const AngularWorkflow = (defaultprops) => {
console.log("RESPONSE FOR APP: ", responseJson.reason);
if (responseJson.reason !== undefined && responseJson.reason !== undefined && responseJson.reason.length > 0) {
selectedApp.documentation = responseJson.reason
setSelectedApp(selectedApp)
setUpdate(Math.random())
if (!responseJson.reason.includes("404: Not Found") && responseJson.reason.length > 50) {
selectedApp.documentation = responseJson.reason
setSelectedApp(selectedApp)
setUpdate(Math.random())
}
}
}
@@ -6167,8 +6169,11 @@ const AngularWorkflow = (defaultprops) => {
//newSelectedAction.parameters[newParamIndex].value = param.value
}
// Not doing options fields
if (newSelectedAction.parameters === undefined || newSelectedAction.parameters === null) {
continue
}
// Not doing options fields
const newParamIndex = newSelectedAction.parameters.findIndex(paramdata => paramdata.name === param.name)
if (newParamIndex < 0) {
continue