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

Remove articles if error

parent a7b65be2
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,7 @@ function navigate_to_search(self, query) {
}
})
.catch(function(error){
self.articles = null
if (error.response && error.response.status == 400) {
self.error = "Søkeuttrykket inneholder feil"
} else if (error.response) {
......
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