Skip to content
Snippets Groups Projects
Commit 6038eac5 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

fix no_results bug

parent d21fc2b8
No related branches found
No related tags found
No related merge requests found
......@@ -188,6 +188,7 @@ function load_articles(self, query, offset, n, dict) {
function navigate_to_query(self, word) {
self.error = null
self.no_results = null
self.waiting_for_articles = true
if (!self.event) {
self.event = {match: word}
......@@ -273,7 +274,7 @@ export default {
waiting_for_metadata: true,
article: null,
error: null,
no_results: null,
no_results: false,
monthly_bm: null,
monthly_nn: null,
event: null,
......@@ -346,6 +347,7 @@ export default {
},
handle_error: function(error, article) {
this.waiting_for_articles = false
this.no_results = false
this.search_results = {}
console.log(error)
if (error.message == "Network Error") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment