Ensure we are looking for the right dropdown inside the form wrapper

This commit is contained in:
Alfredo Sumaran 2016-08-05 17:09:21 -05:00
parent f096cc0471
commit 26c1b72d8f

View file

@ -28,8 +28,8 @@
}
onSelect() {
const $allowedToMergeInput = $(`input[name="${this.$allowedToMergeDropdown.data('fieldName')}"]`);
const $allowedToPushInput = $(`input[name="${this.$allowedToPushDropdown.data('fieldName')}"]`);
const $allowedToMergeInput = this.$wrap.find(`input[name="${this.$allowedToMergeDropdown.data('fieldName')}"]`);
const $allowedToPushInput = this.$wrap.find(`input[name="${this.$allowedToPushDropdown.data('fieldName')}"]`);
$.ajax({
type: 'POST',