From de03eda9f36c7ffdfb8f9f20102c801e01502385 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 17 Jun 2019 23:39:30 +0300 Subject: [PATCH] fix user search --- src/modules/users.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/modules/users.js b/src/modules/users.js index 739b8b92..22340271 100644 --- a/src/modules/users.js +++ b/src/modules/users.js @@ -356,7 +356,13 @@ const users = { }, searchUsers (store, query) { // TODO: Move userSearch api into api.service - return userSearchApi.search({query, store: { state: store.rootState }}) + return userSearchApi.search({ + query, + store: { + state: store.rootState, + getters: store.rootGetters + } + }) .then((users) => { store.commit('addNewUsers', users) return users