From 6c0f138b7d1fa83fa99855a7f3640389dba5a9fb Mon Sep 17 00:00:00 2001 From: Ilya Date: Wed, 5 Apr 2017 22:33:11 +0300 Subject: [PATCH] fix server validate --- lib/app/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app/server.js b/lib/app/server.js index 3f41f514f4..fd54790ddf 100644 --- a/lib/app/server.js +++ b/lib/app/server.js @@ -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) {