Fixed more autocompletion pieces for the code editor and added header field parsing

This commit is contained in:
frikky
2022-07-22 16:47:16 +02:00
parent 32a0508a12
commit b4cb785651
9 changed files with 587 additions and 43 deletions
@@ -552,13 +552,18 @@ const Framework = (props) => {
const nodes = cy.nodes().jsons()
for (var key in nodes) {
const node = nodes[key]
//console.log("NOD: ", node.data, discoveryWrapper.id)
if (node.data.id === discoveryWrapper.id) {
var newSearchName = discoveryWrapper.id.valueOf()
if (newSearchName === "EMAIL") {
newSearchName = "COMMS"
}
if (node.data.id === newSearchName) {
const tmpnode = cy.getElementById(node.data.id)
if (tmpnode !== undefined) {
tmpnode.select()
}
setDefaultSearch(discoveryWrapper.id)
setPaperTitle(discoveryWrapper.id)
}
}