diff --git a/webui/src/components/PostCard.vue b/webui/src/components/PostCard.vue index d287261..a218a6f 100644 --- a/webui/src/components/PostCard.vue +++ b/webui/src/components/PostCard.vue @@ -64,7 +64,7 @@ export default { "/comments?limit=5&start_index=" + this.comments_start_idx).then(response => { // If there are no more comments, set the flag - if (response.data.length == 0) this.data_ended = true; + if (response.data.length == 0 || response.data.length < 5) this.data_ended = true; // Otherwise increment the start index else this.comments_start_idx += 5; @@ -167,7 +167,7 @@ export default {