Bug Fixed saving layer maneger object
This commit is contained in:
1 parent
5bd3d1712d
commit
4d22ec8bc9
2 files changed
+47
-20
No files matched your search
+1
-1
@@ -26,7 +26,7 @@ function savePropertyAtNodeConfig (payload, propertyName, value) {
|
||||
try {
|
||||
let code = JSON.parse(payload.node.code)
|
||||
code[propertyName] = value
|
||||
payload.node.code = JSON.stringify(code)
|
||||
payload.node.code = JSON.stringify(code, null, 4)
|
||||
} catch (err) {
|
||||
// we ignore errors here since most likely they will be parsing errors.
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user