Fixed minor frontend issues related to unparsable data
This commit is contained in:
@@ -24,7 +24,7 @@ require (
|
|||||||
github.com/h2non/filetype v1.1.3
|
github.com/h2non/filetype v1.1.3
|
||||||
github.com/nirasan/go-oauth-pkce-code-verifier v0.0.0-20170819232839-0fbfe93532da // indirect
|
github.com/nirasan/go-oauth-pkce-code-verifier v0.0.0-20170819232839-0fbfe93532da // indirect
|
||||||
github.com/satori/go.uuid v1.2.0
|
github.com/satori/go.uuid v1.2.0
|
||||||
github.com/shuffle/shuffle-shared v0.2.72
|
github.com/shuffle/shuffle-shared v0.2.73
|
||||||
go4.org v0.0.0-20201209231011-d4a079459e60 // indirect
|
go4.org v0.0.0-20201209231011-d4a079459e60 // indirect
|
||||||
golang.org/x/crypto v0.0.0-20220112180741-5e0467b6c7ce
|
golang.org/x/crypto v0.0.0-20220112180741-5e0467b6c7ce
|
||||||
google.golang.org/api v0.65.0
|
google.golang.org/api v0.65.0
|
||||||
|
|||||||
@@ -723,7 +723,6 @@ const Header = (props) => {
|
|||||||
userdata.orgs.splice(foundIndex+1, 1)
|
userdata.orgs.splice(foundIndex+1, 1)
|
||||||
} else {
|
} else {
|
||||||
console.log("ORG NOT FOUND IN LIST: ", childorg)
|
console.log("ORG NOT FOUND IN LIST: ", childorg)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is stupid :)
|
// This is stupid :)
|
||||||
|
|||||||
@@ -342,10 +342,12 @@ const CodeEditor = (props) => {
|
|||||||
const expectedOutput = (input) => {
|
const expectedOutput = (input) => {
|
||||||
|
|
||||||
const found = input.match(/[$]{1}([a-zA-Z0-9_-]+\.?){1}([a-zA-Z0-9#_-]+\.?){0,}/g)
|
const found = input.match(/[$]{1}([a-zA-Z0-9_-]+\.?){1}([a-zA-Z0-9#_-]+\.?){0,}/g)
|
||||||
|
|
||||||
//console.log(found)
|
//console.log(found)
|
||||||
|
|
||||||
// Whelp this is inefficient af. Single loop pls
|
// Whelp this is inefficient af. Single loop pls
|
||||||
// When the found array is empty.
|
// When the found array is empty.
|
||||||
|
try {
|
||||||
for (var i = 0; i < found.length; i++) {
|
for (var i = 0; i < found.length; i++) {
|
||||||
try {
|
try {
|
||||||
found[i] = found[i].toLowerCase()
|
found[i] = found[i].toLowerCase()
|
||||||
@@ -414,6 +416,9 @@ const CodeEditor = (props) => {
|
|||||||
console.log("Replace error: ", e)
|
console.log("Replace error: ", e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (e) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
const tmpValidation = validateJson(input.valueOf())
|
const tmpValidation = validateJson(input.valueOf())
|
||||||
//setValidation(true)
|
//setValidation(true)
|
||||||
|
|||||||
@@ -414,11 +414,13 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
console.log("RESPONSE FOR APP: ", responseJson.reason);
|
console.log("RESPONSE FOR APP: ", responseJson.reason);
|
||||||
|
|
||||||
if (responseJson.reason !== undefined && responseJson.reason !== undefined && responseJson.reason.length > 0) {
|
if (responseJson.reason !== undefined && responseJson.reason !== undefined && responseJson.reason.length > 0) {
|
||||||
|
if (!responseJson.reason.includes("404: Not Found") && responseJson.reason.length > 50) {
|
||||||
selectedApp.documentation = responseJson.reason
|
selectedApp.documentation = responseJson.reason
|
||||||
setSelectedApp(selectedApp)
|
setSelectedApp(selectedApp)
|
||||||
setUpdate(Math.random())
|
setUpdate(Math.random())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
@@ -6167,8 +6169,11 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
//newSelectedAction.parameters[newParamIndex].value = param.value
|
//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)
|
const newParamIndex = newSelectedAction.parameters.findIndex(paramdata => paramdata.name === param.name)
|
||||||
if (newParamIndex < 0) {
|
if (newParamIndex < 0) {
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user