Use better variable name

This commit is contained in:
Jonathan Reinink 2019-04-24 14:44:11 -04:00
parent 3eba742d13
commit b83fda83a5
1 changed files with 2 additions and 2 deletions

4
resources/js/app.js vendored
View File

@ -12,8 +12,8 @@ new Vue({
render: h => h(Inertia, { render: h => h(Inertia, {
props: { props: {
initialPage: JSON.parse(app.dataset.page), initialPage: JSON.parse(app.dataset.page),
resolveComponent: (component) => { resolveComponent: (name) => {
return import(`@/Pages/${component}`).then(module => module.default) return import(`@/Pages/${name}`).then(module => module.default)
}, },
}, },
}), }),