File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ const DemoRender = (): JSX.Element => {
61
61
const innerText = element . attributes . compText ;
62
62
const classRender = element . attributes . cssClasses ;
63
63
const activeLink = element . attributes . compLink ;
64
- console . log ( 'activeLink' , activeLink ) ;
65
64
let renderedChildren ;
66
65
if ( elementType !== 'input' && elementType !== 'img' && element . children . length > 0 ) {
67
66
renderedChildren = componentBuilder ( element . children ) ;
Original file line number Diff line number Diff line change @@ -51,15 +51,13 @@ const CustomizationPanel = ({ isThemeLight }): JSX.Element => {
51
51
//Miko -- save properties of nested div
52
52
function deepIterate ( arr ) {
53
53
const output = [ ] ;
54
- function recurse ( arr ) {
55
- for ( let i = 0 ; i < arr . length ; i ++ ) {
56
- output . push ( arr [ i ] ) ;
57
- if ( arr [ i ] . children . length ) {
58
- recurse ( arr [ i ] . children ) ;
59
- }
54
+ for ( let i = 0 ; i < arr . length ; i ++ ) {
55
+ if ( arr [ i ] . typeId === 1000 ) continue ;
56
+ output . push ( arr [ i ] ) ;
57
+ if ( arr [ i ] . children . length ) {
58
+ output . push ( ...deepIterate ( arr [ i ] . children ) ) ;
60
59
}
61
60
}
62
- recurse ( arr ) ;
63
61
return output ;
64
62
}
65
63
You can’t perform that action at this time.
0 commit comments