Merge pull request #516 from agoalofalife/master

fix server validate
This commit is contained in:
Sébastien Chopin 2017-04-05 21:35:03 +02:00 committed by GitHub
commit f62696d293
1 changed files with 1 additions and 1 deletions

View File

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