From 0e1c7aa5b7bdb57baafb50cd1d5e9b61b61685cf Mon Sep 17 00:00:00 2001
From: Henrik Askjer <henrik.askjer@uib.no>
Date: Wed, 22 Dec 2021 10:17:45 +0100
Subject: [PATCH] null as default pos

---
 src/components/DictionaryView.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue
index e61bad5b..75c2d597 100644
--- a/src/components/DictionaryView.vue
+++ b/src/components/DictionaryView.vue
@@ -181,7 +181,7 @@ function navigate_to_query(self, word) {
   if (self.page) {
     offset = self.perPage * (self.page -1)
   }
-  if (self.pos_selected != "ALL") params.wc = self.pos_selected
+  if (self.pos_selected) params.wc = self.pos_selected
   api.get('articles?', {params}).then((response) => {
             self.article_info = response.data
             self.search_results = {}
@@ -344,7 +344,7 @@ export default {
 
       pos_param: function() {
         if (this.pos_selected) return this.pos_selected.toLowerCase()
-        return ""
+        return null
       },
       update_page: function() {
         let q = (this.$route.query || this.$route.params).q
-- 
GitLab