Support Meta Box Conditional Logic Conditional logic 1.6.1 - JavaScript Error Reply To: Conditional logic 1.6.1 - JavaScript Error

#11909
FEDFED
Participant

Thanks! Now it seems my nested conditionals aren't behaving, but cloning is much faster!!

This is the console error:

conditional-logic.js?ver=1.5:342 Uncaught TypeError: conditions.forEach is not a function
    at getWatchedElements (conditional-logic.js?ver=1.5:342)
    at init (conditional-logic.js?ver=1.5:521)
    at conditional-logic.js?ver=1.5:528
    at dispatch (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.8:3)
    at r.handle (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.8:3)

Referring to this block:

// Outside conditions.
        conditions.forEach( function ( logics ) {
            logics.forEach( function ( logic ) {
                if ( typeof logic.when === 'undefined' ) {
                    return;
                }
                logic.when.forEach( addWatchedElement, null );
            } );
        } );