Commit ab44249c authored by sstern's avatar sstern

Add el check for epic swimlanes

parent 98c48a09
......@@ -2,9 +2,15 @@ import Vue from 'vue';
import ToggleEpicsSwimlanes from './components/toggle_epics_swimlanes.vue';
import store from '~/boards/stores';
export default () =>
new Vue({
el: document.getElementById('js-board-epics-swimlanes-toggle'),
export default () => {
const el = document.getElementById('js-board-epics-swimlanes-toggle');
if (!el) {
return null;
}
return new Vue({
el,
components: {
ToggleEpicsSwimlanes,
},
......@@ -13,3 +19,4 @@ export default () =>
return createElement(ToggleEpicsSwimlanes);
},
});
}
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