Skip to content

Commit

Permalink
Ignore loading voters for deleted posts
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Nov 26, 2024
1 parent 106c6a1 commit 0a22cb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/js/components/forum/post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,9 @@ export default {
this.copy,
);
}
this.loadVoters(this.post);
if (this.is_mode_tree && !this.post.deleted_at) {
this.loadVoters(this.post);
}
},
methods: {
closePostReview(): void {
Expand Down

0 comments on commit 0a22cb1

Please sign in to comment.