Commit 503ff512 authored by Jacob Schatz's avatar Jacob Schatz

Merge branch 'improve-mount-epic' into 'master'

Improve mount epic to explicitly not mount if element is not found

See merge request gitlab-org/gitlab-ee!4801
parents c7bb3f31 72803742
......@@ -25,7 +25,10 @@ function mountWeightComponent(mediator) {
function mountEpic() {
const el = document.querySelector('#js-vue-sidebar-item-epic');
return new Vue({
if (!el) return;
// eslint-disable-next-line no-new
new Vue({
el,
components: {
SidebarItemEpic,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment