mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-29 09:32:43 +00:00
Add preset option for collapsed objects
This commit is contained in:
@@ -336,7 +336,7 @@ function toggleCollapseObject(el) {
|
||||
let path = getPath(el);
|
||||
let index = path.pop();
|
||||
let node = getNode(path);
|
||||
if (!node[index]) {
|
||||
if (typeof node[index] !== 'object') {
|
||||
node[index] = {};
|
||||
} else {
|
||||
delete node[index];
|
||||
|
||||
Reference in New Issue
Block a user