|
@@ -122,10 +122,15 @@ export const fetchTaggingStyles = async () => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
- const tree: any = { children: [] };
|
|
|
|
|
|
|
+ let tree: any = { children: [] };
|
|
|
|
|
+ console.log('tree', tree)
|
|
|
genTree(treeData, tree);
|
|
genTree(treeData, tree);
|
|
|
styleTypes.length = 0
|
|
styleTypes.length = 0
|
|
|
- styleTypes.push(...tree.children)
|
|
|
|
|
|
|
+ console.log('tree', tree)
|
|
|
|
|
+ if(!tree.children){
|
|
|
|
|
+ tree = { children: [] }
|
|
|
|
|
+ }
|
|
|
|
|
+ tree.children && styleTypes.push(...tree.children)
|
|
|
Object.assign(defStyleType, tree.children[tree.children.length - 1])
|
|
Object.assign(defStyleType, tree.children[tree.children.length - 1])
|
|
|
|
|
|
|
|
console.error('StyleT', styleTypes)
|
|
console.error('StyleT', styleTypes)
|