Refactoring Code for Javascript Code

This commit is contained in:
Luis Fernando Molina committed 2019-12-06 18:06:56 +01:00
1 parent 849d6b8a51
commit 58d48edfa6
14 files changed
+25 -29

No files matched your search

+1 -2
View File
@@ -71,7 +71,7 @@ function newConfigEditor () {
let textArea = document.getElementById('textArea')
textArea.style.display = 'none'
thisObject.payload.node.code = textArea.value
if (thisObject.payload.node.type !== 'Code' && thisObject.payload.node.type !== 'Formula') {
if (thisObject.payload.node.type !== 'Javascript Code' && thisObject.payload.node.type !== 'Formula') {
try {
let code = JSON.parse(thisObject.payload.node.code)
} catch (err) {
@@ -220,4 +220,3 @@ function newConfigEditor () {
}
}
}