Skip to content

Commit

Permalink
fix: don't set data if undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Mar 3, 2021
1 parent 8e582e4 commit 6a3d7e1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/pages/posts/navigation/search/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,14 @@ export default {
return
}
this.search.data = await this.fetchTags(tags)
const data = await this.fetchTags(tags)
if (!data) {
console.debug('No tag data.')
return
}
this.search.data = data
}, 350),
resetTags() {
Expand Down

0 comments on commit 6a3d7e1

Please sign in to comment.