Update server.js

This commit is contained in:
Sébastien Chopin 2017-04-05 18:25:35 +02:00 committed by GitHub
parent 99a03812a4
commit 4c012e93af

View File

@ -152,8 +152,8 @@ export default context => {
if (!isValid) return if (!isValid) return
if (typeof Component.options.validate !== 'function') return if (typeof Component.options.validate !== 'function') return
isValid = Component.options.validate({ isValid = Component.options.validate({
params : context.route.params || {}, params: context.route.params || {},
query : context.route.query || {}<%= (store ? ', store: context.store' : '') %> query: context.route.query || {}<%= (store ? ', store: context.store' : '') %>
}) })
}) })
if (!isValid) { if (!isValid) {