From a937198178b9c44444341b1794e9b7d9d39a2347 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Thu, 18 May 2023 15:52:18 +0200 Subject: [PATCH] Make action toolbar initialization more robust [SCI-8413] --- app/javascript/packs/vue/action_toolbar.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/javascript/packs/vue/action_toolbar.js b/app/javascript/packs/vue/action_toolbar.js index 853aac0e3..3d542955e 100644 --- a/app/javascript/packs/vue/action_toolbar.js +++ b/app/javascript/packs/vue/action_toolbar.js @@ -7,6 +7,8 @@ import ActionToolbar from '../../vue/components/action_toolbar.vue'; Vue.use(TurbolinksAdapter); window.initActionToolbar = () => { + if (window.actionToolbarComponent) return; + new Vue({ el: '#actionToolbar', components: {