Commit 72803742 authored by Clement Ho's avatar Clement Ho

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

parent 50c66197
......@@ -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