diff --git a/modules/configuration/jsx/configuration_helper.js b/modules/configuration/jsx/configuration_helper.js index 4be71bf2273..45c6aacc3e8 100644 --- a/modules/configuration/jsx/configuration_helper.js +++ b/modules/configuration/jsx/configuration_helper.js @@ -39,11 +39,9 @@ $(function() { $('.btn-remove').on('click', function(e) { e.preventDefault(); - let options = $(this).parent().parent().children().prop('options'); - let selectedIndex = $(this) - .parent().parent().children() - .prop('selectedIndex'); - let selectedOption = options[selectedIndex].text; + let selectedOption = $(this).parent().parent().children() + .prop('value'); + let fieldName = $(this) .parent().parent().parent().parent().parent().children() .attr('data-original-title');