From 4697d5fac986f982265a2f4c6589bccd10c9cac7 Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Sat, 18 May 2019 08:22:34 -0400 Subject: [PATCH] Tweak formatting of resolveComponent callback --- resources/js/app.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/js/app.js b/resources/js/app.js index 89d6998..8f27c40 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -13,9 +13,7 @@ new Vue({ render: h => h(Inertia, { props: { initialPage: JSON.parse(app.dataset.page), - resolveComponent: (name) => { - return import(`@/Pages/${name}`).then(module => module.default) - }, + resolveComponent: name => import(`@/Pages/${name}`).then(module => module.default), }, }), }).$mount(app)