diff --git a/src/components/user_autosuggest/user_autosuggest.js b/src/components/user_autosuggest/user_autosuggest.js index b99f61cc..42914b36 100644 --- a/src/components/user_autosuggest/user_autosuggest.js +++ b/src/components/user_autosuggest/user_autosuggest.js @@ -1,11 +1,11 @@ -import BasicUserCard from '../basic_user_card/basic_user_card.vue' +import BlockCard from '../block_card/block_card.vue' import userSearchApi from '../../services/new_api/user_search.js' const debounceMilliseconds = 500 export default { components: { - BasicUserCard + BlockCard }, data () { return { @@ -28,6 +28,7 @@ export default { if (query) { userSearchApi.search({query, store: this.$store}) .then((data) => { + this.$store.dispatch('addNewUsers', data) this.results = data this.resultsVisible = true }) diff --git a/src/components/user_autosuggest/user_autosuggest.vue b/src/components/user_autosuggest/user_autosuggest.vue index 2840941f..d85fabf1 100644 --- a/src/components/user_autosuggest/user_autosuggest.vue +++ b/src/components/user_autosuggest/user_autosuggest.vue @@ -2,7 +2,7 @@