From 32509fab275e509a24d2566e02ea853b50c9258d Mon Sep 17 00:00:00 2001 From: Bence Szalai Date: Tue, 8 Sep 2020 23:14:50 +0200 Subject: [PATCH] Removed wrong check from `updateField` function This fixes https://github.com/kirki-framework/kirki/issues/1540 --- .../control-repeater/src/assets/scripts/control.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/kirki-framework/control-repeater/src/assets/scripts/control.js b/packages/kirki-framework/control-repeater/src/assets/scripts/control.js index 9c7f47960..5ee4aa004 100644 --- a/packages/kirki-framework/control-repeater/src/assets/scripts/control.js +++ b/packages/kirki-framework/control-repeater/src/assets/scripts/control.js @@ -733,10 +733,6 @@ wp.customize.controlConstructor.repeater = wp.customize.Control.extend( { element = jQuery( element ); - if ( _.isUndefined( currentSettings[ row.rowIndex ][ fieldId ] ) ) { - return; - } - if ( 'checkbox' === type ) { currentSettings[ row.rowIndex ][ fieldId ] = element.is( ':checked' ); } else {