Other small fixes

This commit is contained in:
monilprajapati
2024-06-21 22:35:42 +05:30
parent ef46b5ab99
commit 4276717ff6
+8 -4
View File
@@ -12501,9 +12501,9 @@ const releaseToConnectLabel = "Release to Connect"
let mappingWithName = {} let mappingWithName = {}
let listWithValues = workflow.triggers[selectedTriggerIndex].parameters[5]?.value.split(";").filter(e => e).map(e => e.split("=")) let listWithValues = workflow.triggers[selectedTriggerIndex].parameters[5]?.value.split(";").filter(e => e).map(e => e.split("="))
console.log("LIST WITH VALUES: ", listWithValues) console.log("LIST WITH VALUES: ", listWithValues)
if (listWithValues === undefined || listWithValues === null || listWithValues.length === 0) { // if (listWithValues === undefined || listWithValues === null || listWithValues.length === 0) {
return "no-overrides"; // return "no-overrides";
} // }
for (let i = 0; i < listWithValues.length; i++) { for (let i = 0; i < listWithValues.length; i++) {
mappingWithName[listWithValues[i][0]] = listWithValues[i][1] mappingWithName[listWithValues[i][0]] = listWithValues[i][1]
@@ -18389,7 +18389,7 @@ const releaseToConnectLabel = "Release to Connect"
</div> </div>
{foundnotifications > 0 ? {foundnotifications > 0 ?
<Tooltip title={"This workflow created " + foundnotifications + " notification(s)"} placement="top"> <Tooltip title={"This workflow created " + foundnotifications + " notification(s). Click to explore them."} placement="top">
<ErrorOutlineIcon <ErrorOutlineIcon
style={{color: "rgba(255,255,255,0.4)", marginTop: 10, marginRight: 10, }} style={{color: "rgba(255,255,255,0.4)", marginTop: 10, marginRight: 10, }}
onClick={(e) => { onClick={(e) => {
@@ -21402,6 +21402,10 @@ const releaseToConnectLabel = "Release to Connect"
setElements([]) setElements([])
} }
// // Remove all edges
// cy.edges().remove()
// cy.nodes().remove()
// Remove all cy nodes // Remove all cy nodes
setTimeout(() => { setTimeout(() => {
setupGraph(newrevision) setupGraph(newrevision)