summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards/config_toggle.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/boards/config_toggle.js')
-rw-r--r--app/assets/javascripts/boards/config_toggle.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/boards/config_toggle.js b/app/assets/javascripts/boards/config_toggle.js
index 7f327c5764d..41938d8e284 100644
--- a/app/assets/javascripts/boards/config_toggle.js
+++ b/app/assets/javascripts/boards/config_toggle.js
@@ -2,14 +2,15 @@ import Vue from 'vue';
import { parseBoolean } from '~/lib/utils/common_utils';
import ConfigToggle from './components/config_toggle.vue';
-export default (boardsStore) => {
+export default (boardsStore = undefined) => {
const el = document.querySelector('.js-board-config');
if (!el) {
return;
}
- gl.boardConfigToggle = new Vue({
+ // eslint-disable-next-line no-new
+ new Vue({
el,
render(h) {
return h(ConfigToggle, {