diff options
Diffstat (limited to 'app/assets/javascripts/add_context_commits_modal/index.js')
-rw-r--r-- | app/assets/javascripts/add_context_commits_modal/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/add_context_commits_modal/index.js b/app/assets/javascripts/add_context_commits_modal/index.js index 697d32664e8..110677781a7 100644 --- a/app/assets/javascripts/add_context_commits_modal/index.js +++ b/app/assets/javascripts/add_context_commits_modal/index.js @@ -8,7 +8,7 @@ export default function initAddContextCommitsTriggers() { const addContextCommitsModalTriggerEl = document.querySelector('.add-review-item-modal-trigger'); const addContextCommitsModalWrapperEl = document.querySelector('.add-review-item-modal-wrapper'); - if (addContextCommitsModalTriggerEl || addContextCommitsModalWrapperEl) { + if (addContextCommitsModalTriggerEl) { // eslint-disable-next-line no-new new Vue({ el: addContextCommitsModalTriggerEl, @@ -28,7 +28,9 @@ export default function initAddContextCommitsTriggers() { }); }, }); + } + if (addContextCommitsModalWrapperEl) { const store = createStore(); // eslint-disable-next-line no-new |