From b149cde0603eeb92f1693f0ab7ccbab84ffb08fd Mon Sep 17 00:00:00 2001
From: alexisben <alexiben7@gmail.com>
Date: Tue, 8 Mar 2022 13:12:26 +0100
Subject: [PATCH] Add delay before executing vue scripts

---
 app/views/admin/communication/blocks/edit.html.erb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/views/admin/communication/blocks/edit.html.erb b/app/views/admin/communication/blocks/edit.html.erb
index 22de33826..069ad2c1d 100644
--- a/app/views/admin/communication/blocks/edit.html.erb
+++ b/app/views/admin/communication/blocks/edit.html.erb
@@ -91,6 +91,8 @@
   });
 
   window.addEventListener('load', function(){
-    app.mount('#app')
+    setTimeout(function() {
+      app.mount('#app');
+    }, 1000);
   });
 </script>
-- 
GitLab