Refactoring Code for Javascript Code
This commit is contained in:
1 parent
849d6b8a51
commit
58d48edfa6
14 files changed
+25
-29
No files matched your search
@@ -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 () {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user