diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-12-06 17:33:14 +0300 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2018-12-06 18:33:36 +0300 |
commit | 62e82ba95f5ff7cb7f68c90921957417e286a334 (patch) | |
tree | 01e8cab0e25f46e0b42f937e90ffd4043bb23441 /app/assets/javascripts | |
parent | cebd595eaaf86f04015011bfb4e173cfa797479c (diff) |
Fix duplicate boardsStore variable in milestone select
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/milestone_select.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/milestone_select.js b/app/assets/javascripts/milestone_select.js index d32f39881dd..75c18a9b6a0 100644 --- a/app/assets/javascripts/milestone_select.js +++ b/app/assets/javascripts/milestone_select.js @@ -155,7 +155,7 @@ export default class MilestoneSelect { const { $el, e } = clickEvent; let selected = clickEvent.selectedObj; - let data, boardsStore; + let data, modalStoreFilter; if (!selected) return; if (options.handleClick) { @@ -179,11 +179,11 @@ export default class MilestoneSelect { } if ($dropdown.closest('.add-issues-modal').length) { - boardsStore = ModalStore.store.filter; + modalStoreFilter = ModalStore.store.filter; } - if (boardsStore) { - boardsStore[$dropdown.data('fieldName')] = selected.name; + if (modalStoreFilter) { + modalStoreFilter[$dropdown.data('fieldName')] = selected.name; e.preventDefault(); } else if ($dropdown.hasClass('js-filter-submit') && (isIssueIndex || isMRIndex)) { return Issuable.filterResults($dropdown.closest('form')); |