Skip to content

Commit

Permalink
dont save reference-layers children in JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Algorush committed May 31, 2024
1 parent c35fc54 commit 2c30773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json-utils_1.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function getElementData(entity) {
return;
}
// node id's that should save without child nodes
const skipChildrenNodes = ['environment'];
const skipChildrenNodes = ['environment', 'reference-layers'];
const elementTree = getAttributes(entity);
const children = entity.childNodes;
if (children.length && !skipChildrenNodes.includes(elementTree.id)) {
Expand Down

0 comments on commit 2c30773

Please sign in to comment.