Skip to content

Commit

Permalink
feat(Post): add empty files check
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jul 29, 2022
1 parent d8d6502 commit cc50b9c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions components/pages/posts/post/Post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,17 @@ export default {
this.error.message = message
this.error.show = true
}
if (!this.post.data.high_res_file.url && !this.post.data.low_res_file.url) {
const message = 'No media available.'
console.warn(message)
this.error.message = message
this.error.show = true
}
},
},
Expand Down

0 comments on commit cc50b9c

Please sign in to comment.