From 73b3c102f90044b678ab78197bde695e40753f2e Mon Sep 17 00:00:00 2001 From: Niek Hoffmans Date: Mon, 17 Jun 2019 18:59:25 +0200 Subject: [PATCH] Fix for element not found --- resources/assets/js/vue.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/resources/assets/js/vue.js b/resources/assets/js/vue.js index 14f7b2a7..8a3e8c27 100644 --- a/resources/assets/js/vue.js +++ b/resources/assets/js/vue.js @@ -10,10 +10,12 @@ require('../vue/zekeringen/zekeringen'); Vue.component('auto-complete-field', require('../vue/components/AutoCompleteField').default); -/** - * Create vue for the core package - */ -const core = new Vue({ - el: '#app', - store -}); \ No newline at end of file +if(document.getElementById('app') !== null) { + /** + * Create vue for the core package + */ + const core = new Vue({ + el: '#app', + store + }); +} \ No newline at end of file