modules/import/tree.js
// Remove empty fields: "operatorOptions"
Remove empty fields: "operatorOptions"
Remove empty fields : " operatorOptions "
function _lightTree (tree) {
  let newTree = tree;
  function _processNode (item, itemId) {
    if (item.path)
      delete item.path;
    if (itemId)
      delete item.id;
    let properties = item.properties;
    if (properties) {
      if (properties.operatorOptions == null)
        delete properties.operatorOptions;
    }
    const children = item.children1;
    if (children) {
      for (let id in children) {
        _processNode(children[id], id);
      }
    }
  }
  _processNode(tree, null);
  return newTree;
}
function _lightTree ( tree ) { let newTree = tree ; function _processNode ( item , itemId ) { if ( item . path ) delete item . path ; if ( itemId ) delete item . id ; let properties = item . properties ; if ( properties ) { if ( properties . operatorOptions == null ) delete properties . operatorOptions ; } const children = item . children1 ; if ( children ) { for ( let id in children ) { _processNode ( children [ id ] , id ) ; } } } _processNode ( tree , null ) ; return newTree ; }
Remove empty fields: "operatorOptions"
Remove empty fields : " operatorOptions "