summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pages/projects/issues/show/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/pages/projects/issues/show/index.js')
-rw-r--r--app/assets/javascripts/pages/projects/issues/show/index.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/app/assets/javascripts/pages/projects/issues/show/index.js b/app/assets/javascripts/pages/projects/issues/show/index.js
index aef4feef42c..630add51a97 100644
--- a/app/assets/javascripts/pages/projects/issues/show/index.js
+++ b/app/assets/javascripts/pages/projects/issues/show/index.js
@@ -2,10 +2,8 @@ import initSidebarBundle from '~/sidebar/sidebar_bundle';
import initRelatedIssues from '~/related_issues';
import initShow from '../show';
-document.addEventListener('DOMContentLoaded', () => {
- initShow();
- if (gon.features && !gon.features.vueIssuableSidebar) {
- initSidebarBundle();
- }
- initRelatedIssues();
-});
+initShow();
+if (gon.features && !gon.features.vueIssuableSidebar) {
+ initSidebarBundle();
+}
+initRelatedIssues();