Skip to content

Commit

Permalink
fix(Post): fall back to width & height of large file
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Apr 16, 2023
1 parent 9eff938 commit b523ad9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/pages/posts/post/Post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ export default {
} else {
// Return low res file
data.file = this.post.data.low_res_file.url
data.width = this.post.data.low_res_file.width
data.height = this.post.data.low_res_file.height
data.width = this.post.data.low_res_file.width ?? this.post.data.high_res_file.width
data.height = this.post.data.low_res_file.height ?? this.post.data.high_res_file.height
}
break
Expand Down

0 comments on commit b523ad9

Please sign in to comment.