From 5925666496778c1a6961a0296bc81f4cfba56d60 Mon Sep 17 00:00:00 2001 From: Kevin Van Der Werff Date: Mon, 21 Oct 2019 17:19:57 +0200 Subject: [PATCH] :construction: :art: add tags to returned search results --- components/Search.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/components/Search.vue b/components/Search.vue index 2bcaced..0b0c914 100644 --- a/components/Search.vue +++ b/components/Search.vue @@ -20,11 +20,10 @@ export default { const tags = R.filter(isTag, words) const titles = R.filter(R.compose(R.not, isTag), words) console.group() - console.log("words:", words) + console.log("words:", titles) console.log("tags:", tags) - console.log("titles:", titles) - console.log(this.$store.getters['data/findByName'](titles)) - console.log(this.$store.getters['data/findByTags'](R.map(removeFirstChar, tags))) + console.log("returned by words search:", this.$store.getters['data/findByName'](titles)) + console.log("returned by tags search:", this.$store.getters['data/findByTags'](R.map(removeFirstChar, tags))) console.groupEnd() }, },