minor adjustments

This commit is contained in:
Kevin van der Werff
2019-11-07 04:16:53 +01:00
parent 1a98293a0d
commit b96b04f55c

View File

@@ -44,16 +44,14 @@ export default {
this.debounceID = setTimeout(() => {
const keywords = updatedChanges.query.keywords
const tags = updatedChanges.query.tags
const newSearchInput = {
this.searchInput = {
keywords: keywords && R.split(',', keywords),
tags: tags && R.split(',', tags),
}
this.searchInput = newSearchInput
}, 500)
},
searchInput(searchInput) {
this.resources = this.$store.getters['data/findBySearchInputs'](searchInput.keywords, searchInput.tags)
console.log(this.resources)
},
},
mounted() {